summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2016-05-07 13:52:55 +0200
committerJan Dittberner <jandd@cacert.org>2016-05-07 13:52:55 +0200
commit2b175af7f2449f05233f70a890a8d5a2717b5db6 (patch)
treed296fbdbd1c179c3a92daf7ece11eb797866ab47
parent2fc2c4a3c1b24612d8837e0f293a6637c80696e5 (diff)
downloadcacert-infradocs-2b175af7f2449f05233f70a890a8d5a2717b5db6.tar.gz
cacert-infradocs-2b175af7f2449f05233f70a890a8d5a2717b5db6.tar.xz
cacert-infradocs-2b175af7f2449f05233f70a890a8d5a2717b5db6.zip
Fix PEP-8 violations
-rw-r--r--docs/sphinxext/cacert.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/sphinxext/cacert.py b/docs/sphinxext/cacert.py
index bde161f..f640ade 100644
--- a/docs/sphinxext/cacert.py
+++ b/docs/sphinxext/cacert.py
@@ -6,8 +6,6 @@
# sshkeys
# sshkeylist
-__version__ = '0.1.0'
-
import re
from ipaddress import ip_address
@@ -23,6 +21,8 @@ from sphinx.util.nodes import set_source_info, make_refnode
from dateutil.parser import parse as date_parse
from validate_email import validate_email
+__version__ = '0.1.0'
+
class sslcert_node(nodes.General, nodes.Element):
pass
@@ -32,6 +32,8 @@ class sslcertlist_node(nodes.General, nodes.Element):
pass
+# mapping and validation functions for directive options
+
def hex_int(argument):
value = int(argument, base=16)
return value
@@ -143,6 +145,7 @@ class CAcertSSLCert(Directive):
para.append(sslcert)
return [para]
+
class CAcertSSLCertList(Directive):
"""
The sslcertlist directive implementation
@@ -150,6 +153,7 @@ class CAcertSSLCertList(Directive):
def run(self):
return [sslcertlist_node()]
+
class CAcertSSHKeys(Directive):
"""
The sshkeys directive implementation that can be used to specify the ssh
@@ -158,6 +162,7 @@ class CAcertSSHKeys(Directive):
def run(self):
return []
+
class CAcertSSHKeyList(Directive):
"""
The sshkeylist directive implementation
@@ -269,9 +274,9 @@ def _build_cert_anchor_name(cn, serial):
def _format_subject_alternative_names(altnames):
- return nodes.paragraph(text = ", ".join([
- content for _, content in altnames
- ]))
+ return nodes.paragraph(text=", ".join(
+ [content for _, content in altnames]
+ ))
def _place_sort_key(place):