summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2018-11-26 10:53:40 +0100
committerChristian Heimes <cheimes@redhat.com>2018-11-26 16:54:43 +0100
commit533a5b2633e8b5d9049256ea085324cbc45c6e73 (patch)
treedd6d7b1443e67610fdb7584e320cfdee40863ce5 /ipapython
parent58053b27475a6fe6f84b7cb85229938e7839af62 (diff)
downloadfreeipa-533a5b2633e8b5d9049256ea085324cbc45c6e73.tar.gz
freeipa-533a5b2633e8b5d9049256ea085324cbc45c6e73.tar.xz
freeipa-533a5b2633e8b5d9049256ea085324cbc45c6e73.zip
pylint 2.2: Fix unnecessary pass statement
pylint 2.2.0 has a new checker for unnecessary pass statements. There is no need to have a pass statement in functions or classes with a doc string. Fixes: https://pagure.io/freeipa/issue/7772 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Thomas Woerner <twoerner@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/admintool.py1
-rw-r--r--ipapython/certdb.py3
2 files changed, 0 insertions, 4 deletions
diff --git a/ipapython/admintool.py b/ipapython/admintool.py
index 6ba682ef8..1bb953f4f 100644
--- a/ipapython/admintool.py
+++ b/ipapython/admintool.py
@@ -212,7 +212,6 @@ class AdminTool:
Any options that might be asked for should also be validated here.
"""
- pass
def setup_logging(self, log_file_mode='w'):
"""Set up logging
diff --git a/ipapython/certdb.py b/ipapython/certdb.py
index 12e21f286..3a38b2fea 100644
--- a/ipapython/certdb.py
+++ b/ipapython/certdb.py
@@ -224,19 +224,16 @@ KEY_RE = re.compile(
class Pkcs12ImportIncorrectPasswordError(RuntimeError):
""" Raised when import_pkcs12 fails because of a wrong password.
"""
- pass
class Pkcs12ImportOpenError(RuntimeError):
""" Raised when import_pkcs12 fails trying to open the file.
"""
- pass
class Pkcs12ImportUnknownError(RuntimeError):
""" Raised when import_pkcs12 fails because of an unknown error.
"""
- pass
class NSSDatabase: