Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
caucase
Commits
15176ff0
Commit
15176ff0
authored
Oct 19, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: Assorted cleanups.
parent
b2ea5517
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
caucase/http.py
caucase/http.py
+2
-2
caucase/utils.py
caucase/utils.py
+1
-1
No files found.
caucase/http.py
View file @
15176ff0
...
@@ -308,8 +308,8 @@ def getSSLContext(
...
@@ -308,8 +308,8 @@ def getSSLContext(
Extension
(
Extension
(
x509
.
SubjectAlternativeName
([
x509
.
SubjectAlternativeName
([
x509
.
DNSName
(
hostname_dnsname
)
x509
.
DNSName
(
hostname_dnsname
)
if
hostname_ip_address
is
None
if
hostname_ip_address
is
None
else
else
x509
.
IPAddress
(
hostname_ip_address
),
x509
.
IPAddress
(
hostname_ip_address
)
]),
]),
critical
=
True
,
critical
=
True
,
),
),
...
...
caucase/utils.py
View file @
15176ff0
...
@@ -455,7 +455,7 @@ def toUnicode(value, encoding='ascii'):
...
@@ -455,7 +455,7 @@ def toUnicode(value, encoding='ascii'):
def
toBytes
(
value
,
encoding
=
'ascii'
):
def
toBytes
(
value
,
encoding
=
'ascii'
):
"""
"""
Convert val
y
e to bytes object, if it is not already.
Convert val
u
e to bytes object, if it is not already.
"""
"""
return
value
if
isinstance
(
value
,
bytes
)
else
value
.
encode
(
encoding
)
return
value
if
isinstance
(
value
,
bytes
)
else
value
.
encode
(
encoding
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment