diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-11-23 10:04:43 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-11-25 16:18:22 +0100 |
commit | 38e8719f728e6d54289507fe2c7f79f9272c45c0 (patch) | |
tree | 09b4709a878ae7bb428a0302043d15e20747efed /ipalib/cli.py | |
parent | 044d887e81d433b43c33b076a21fd1054796786e (diff) | |
download | freeipa-38e8719f728e6d54289507fe2c7f79f9272c45c0.tar.gz freeipa-38e8719f728e6d54289507fe2c7f79f9272c45c0.tar.xz freeipa-38e8719f728e6d54289507fe2c7f79f9272c45c0.zip |
Python3 pylint fixes
Sprinkle 'pylint disable' comments over the code base to silence a bunch
of pylint warnings on Python 3. All silenced warnings are harmless and
not bugs.
https://fedorahosted.org/freeipa/ticket/4985
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index ad876ea43..696be622f 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -27,7 +27,7 @@ import textwrap import sys import getpass import code -import optparse +import optparse # pylint: disable=deprecated-module import fcntl import termios import struct @@ -41,8 +41,8 @@ if six.PY3: unicode = str if six.PY2: - reload(sys) # pylint: disable=reload-builtin - sys.setdefaultencoding('utf-8') # pylint: disable=no-member + reload(sys) # pylint: disable=reload-builtin, undefined-variable + sys.setdefaultencoding('utf-8') # pylint: disable=no-member from ipalib import frontend from ipalib import backend |