diff options
author | Martin Basti <mbasti@redhat.com> | 2016-09-26 18:24:39 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-09-27 13:35:58 +0200 |
commit | 45e3aee35219c89c07d590003a334f8db658a3b2 (patch) | |
tree | cb535e7f725f31d0bc6b5faf405b08fac05a3e96 /ipaclient | |
parent | 9d83be3647547cfca4e129cfeb63771213232cf7 (diff) | |
download | freeipa-45e3aee35219c89c07d590003a334f8db658a3b2.tar.gz freeipa-45e3aee35219c89c07d590003a334f8db658a3b2.tar.xz freeipa-45e3aee35219c89c07d590003a334f8db658a3b2.zip |
Pylint: enable check for unused-variables
Unused variables may:
* make code less readable
* create dead code
* potentialy hide issues/errors
Enabled check should prevent to leave unused variable in code
Check is locally disabled for modules that fix is not clear or easy or have too many occurences of
unused variables
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipaclient')
-rw-r--r-- | ipaclient/ipachangeconf.py | 2 | ||||
-rw-r--r-- | ipaclient/ipadiscovery.py | 2 | ||||
-rw-r--r-- | ipaclient/plugins/cert.py | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/ipaclient/ipachangeconf.py b/ipaclient/ipachangeconf.py index 64177f8fa..b6cbc9bba 100644 --- a/ipaclient/ipachangeconf.py +++ b/ipaclient/ipachangeconf.py @@ -24,6 +24,8 @@ import shutil import six +# pylint: disable=unused-variable + if six.PY3: unicode = str diff --git a/ipaclient/ipadiscovery.py b/ipaclient/ipadiscovery.py index 62c8aef95..e051bc722 100644 --- a/ipaclient/ipadiscovery.py +++ b/ipaclient/ipadiscovery.py @@ -30,6 +30,8 @@ from ipaplatform.paths import paths from ipapython.ipautil import valid_ip, realm_to_suffix from ipapython.dn import DN +# pylint: disable=unused-variable + NOT_FQDN = -1 NO_LDAP_SERVER = -2 REALM_NOT_FOUND = -3 diff --git a/ipaclient/plugins/cert.py b/ipaclient/plugins/cert.py index 1075972c4..5e791ce6e 100644 --- a/ipaclient/plugins/cert.py +++ b/ipaclient/plugins/cert.py @@ -27,6 +27,8 @@ from ipalib.parameters import File, Flag, Str from ipalib.plugable import Registry from ipalib.text import _ +# pylint: disable=unused-variable + register = Registry() |