From 12badcabc1cd345256a4902f7b0583cf667ecd8d Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 11 Aug 2015 20:55:48 +0200 Subject: Make pki PEP 8 compatible Large portions of the patch was automatically created with autopep8: find base/ -name '*.py' | xargs autopep8 --in-place --ignore E309 \ --aggressive find base/common/upgrade base/server/upgrade -type f -and \ -not -name .gitignore | autopep8 --in-place --ignore E309 --aggressive autopep8 --in-place --ignore E309 --aggressive \ base/common/sbin/pki-upgrade \ base/server/sbin/pkispawn \ base/server/sbin/pkidestroy \ base/server/sbin/pki-server \ base/server/sbin/pki-server-upgrade About two dozent violations were fixed manually. https://fedorahosted.org/pki/ticket/708 --- base/common/python/pki/system.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'base/common/python/pki/system.py') diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py index 76b505909..b3d5fc641 100644 --- a/base/common/python/pki/system.py +++ b/base/common/python/pki/system.py @@ -112,7 +112,7 @@ class SecurityDomainSubsystem(object): hosts = json_value['Host'] if isinstance(hosts, dict): - hosts = [ hosts ] + hosts = [hosts] for h in hosts: host = SecurityDomainHost.from_json(h) @@ -155,7 +155,7 @@ class SecurityDomainInfo(object): subsystems = domain_info['Subsystem'] if isinstance(subsystems, dict): - subsystems = [ subsystems ] + subsystems = [subsystems] for s in subsystems: subsystem = SecurityDomainSubsystem.from_json(s) @@ -211,6 +211,7 @@ class ConfigurationRequest(object): This class is the python equivalent of the Java class: com.netscape.certsrv.system.ConfigurationRequest """ + def __init__(self): self.token = "Internal Key Storage Token" self.isClone = "false" @@ -227,6 +228,7 @@ class ConfigurationResponse(object): This class is the python equivalent of the Java class: com.netscape.certsrv.system.ConfigurationRequest """ + def __init__(self): pass @@ -240,6 +242,7 @@ class SystemCertData(object): This class is the python equivalent of the Java class: com.netscape.certsrv.system.SystemCertData """ + def __init__(self): pass @@ -252,6 +255,7 @@ class SystemConfigClient(object): The connection details for the system being configured are passed in the PKIConnection object used when constructing this object. """ + def __init__(self, connection): self.connection = connection @@ -276,6 +280,7 @@ class SystemStatusClient(object): """ Client used to check the status of a Dogtag subsystem. """ + def __init__(self, connection): self.connection = connection -- cgit