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
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
d8173a24
Commit
d8173a24
authored
Jul 22, 2018
by
Vincent Pelletier
Committed by
Vincent Pelletier
Jul 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils: Make coding style a bit more consistent.
parent
9d55f8d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
caucase/utils.py
caucase/utils.py
+2
-4
No files found.
caucase/utils.py
View file @
d8173a24
...
@@ -322,7 +322,7 @@ def dump_certificate(data):
...
@@ -322,7 +322,7 @@ def dump_certificate(data):
"""
"""
Serialise a certificate as PEM-encoded data.
Serialise a certificate as PEM-encoded data.
"""
"""
return
data
.
public_bytes
(
serialization
.
Encoding
.
PEM
)
return
data
.
public_bytes
(
encoding
=
serialization
.
Encoding
.
PEM
)
def
load_certificate_request
(
data
):
def
load_certificate_request
(
data
):
"""
"""
...
@@ -340,9 +340,7 @@ def dump_certificate_request(data):
...
@@ -340,9 +340,7 @@ def dump_certificate_request(data):
"""
"""
Serialise acertificate request as PEM-encoded data.
Serialise acertificate request as PEM-encoded data.
"""
"""
return
data
.
public_bytes
(
return
data
.
public_bytes
(
encoding
=
serialization
.
Encoding
.
PEM
)
encoding
=
serialization
.
Encoding
.
PEM
,
)
def
load_privatekey
(
data
):
def
load_privatekey
(
data
):
"""
"""
...
...
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