summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/key.py
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2015-01-30 15:49:27 -0500
committerEndi S. Dewata <edewata@redhat.com>2015-02-05 11:32:20 -0500
commitdfe55982eb50750fc1e65bce312d884b1604f0b4 (patch)
tree411d1316c3b4ff78e3a349bb4923bd0e2aae03c7 /base/common/python/pki/key.py
parent8fc5acb72ac9fdbc70b8a6e7242890f9dbeccf56 (diff)
Fixed pylint report.
Previously pylint report was saved it into a file which may not be accessible on a build system. The pylint-build-scan.sh has been changed to display the report so it will appear in the build log. The pylint configuration has also been modified to disable C and R messages by default. This way when other errors or warnings occur the build will fail without having to check for specific codes. Some Python codes have been modified to reduce the number of pylint warnings. https://fedorahosted.org/pki/ticket/703
Diffstat (limited to 'base/common/python/pki/key.py')
-rw-r--r--base/common/python/pki/key.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/base/common/python/pki/key.py b/base/common/python/pki/key.py
index bcc56747e..3ff6e3dba 100644
--- a/base/common/python/pki/key.py
+++ b/base/common/python/pki/key.py
@@ -34,7 +34,7 @@ import pki.encoder as encoder
#should be moved to request.py
-#pylint: disable-msg=R0903
+#pylint: disable=R0903
class RequestId(object):
"""
Class representing a Request ID
@@ -45,7 +45,7 @@ class RequestId(object):
self.value = req_id
-#pylint: disable-msg=R0903
+#pylint: disable=R0903
class KeyData(object):
"""
This is the object that contains the encoded wrapped secret
@@ -57,7 +57,7 @@ class KeyData(object):
'nonceData': 'nonce_data', 'wrappedPrivateData': 'wrapped_private_data'
}
- # pylint: disable-msg=C0103
+ # pylint: disable=C0103
def __init__(self):
""" Constructor """
self.algorithm = None
@@ -108,7 +108,7 @@ class KeyInfo(object):
'ownerName': 'owner_name', 'publicKey': 'public_key'
}
- # pylint: disable-msg=C0103
+ # pylint: disable=C0103
def __init__(self):
""" Constructor """
self.client_key_id = None
@@ -140,7 +140,7 @@ class KeyInfo(object):
return None
-#pylint: disable-msg=R0903
+#pylint: disable=R0903
class KeyInfoCollection(object):
"""
This class represents data returned when searching the DRM archived
@@ -176,7 +176,7 @@ class KeyRequestInfo(object):
'keyURL': 'key_url', 'requestStatus': 'request_status'
}
- # pylint: disable-msg=C0103
+ # pylint: disable=C0103
def __init__(self):
""" Constructor """
self.request_url = None
@@ -212,7 +212,7 @@ class KeyRequestInfo(object):
return None
-#pylint: disable-msg=R0903
+#pylint: disable=R0903
class KeyRequestInfoCollection(object):
"""
This class represents the data returned when searching the key
@@ -248,7 +248,7 @@ class KeyRequestResponse(object):
which contains the wrapped secret (if that operation is supported).
"""
- # pylint: disable-msg=C0103
+ # pylint: disable=C0103
def __init__(self):
""" Constructor """
self.request_info = None
@@ -705,14 +705,14 @@ class KeyClient(object):
key_size=key_size)
@pki.handle_exceptions()
- def archive_encrypted_data(self,
- client_key_id,
- data_type,
- encrypted_data,
- wrapped_session_key,
- algorithm_oid=None,
- nonce_iv=None,
- key_algorithm=None,
+ def archive_encrypted_data(self,\
+ client_key_id,\
+ data_type,\
+ encrypted_data,\
+ wrapped_session_key,\
+ algorithm_oid=None,\
+ nonce_iv=None,\
+ key_algorithm=None,\
key_size=None):
"""
Archive a secret (symmetric key or passphrase) on the DRM.