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>
This commit is contained in:
Christian Heimes committed 2018-11-26 16:54:43 +01:00
1 parent 58053b2747
commit 533a5b2633
13 files changed
+3 -21

No files matched your search

-3
View File
@@ -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: