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>
This commit is contained in:
Christian Heimes
2016-11-23 10:04:43 +01:00
committed by Martin Basti
parent 044d887e81
commit 38e8719f72
24 changed files with 40 additions and 21 deletions

View File

@@ -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