mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Martin Basti
parent
044d887e81
commit
38e8719f72
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user