Commit 2eb358be authored by Vincent Pelletier's avatar Vincent Pelletier

caucase: Simplify pylint rules.

bad-option-value has an effect on the "disable" line, but somehow none on the
"enable" line. So remove it altogether.
parent d14f0222
Pipeline #13439 passed with stage
in 0 seconds
......@@ -351,9 +351,9 @@ def _verifyCertificateChain(cert, trusted_cert_list, crl):
# bad-style local import). Use "cryptography".
# Also, older pylint (last version suppoting 2.7 ?) does not support
# import-outside-toplevel but does not detect anything wrong here.
# pylint: disable=bad-option-value, import-outside-toplevel
# pylint: disable=import-outside-toplevel
from OpenSSL import crypto
# pylint: enable=import-outside-toplevel, bad-option-value
# pylint: enable=import-outside-toplevel
store = crypto.X509Store()
assert trusted_cert_list
for trusted_cert in trusted_cert_list:
......
......@@ -179,9 +179,9 @@ class InsufficientStorage(ApplicationError):
# (spoiler: it is suitable).
# Also, older pylint (last version suppoting 2.7 ?) does not support
# bad-string-format-type but does not detect anything wrong here.
# pylint: disable=bad-option-value, bad-string-format-type
# pylint: disable=bad-string-format-type
status = '%i Insufficient Storage' % (httplib.INSUFFICIENT_STORAGE, )
# pylint: enable=bad-string-format-type, bad-option-value
# pylint: enable=bad-string-format-type
STATUS_OK = _getStatus(httplib.OK)
STATUS_CREATED = _getStatus(httplib.CREATED)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment