summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/deployment/pkiconfig.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-08-16 19:00:00 +0200
committerChristian Heimes <cheimes@redhat.com>2015-08-17 21:14:12 +0200
commitc46caa19d9e1fb429fd77693abcca2fe668366aa (patch)
treebb5ed5f4c2987959b53c4390783ae67f1d3a16d6 /base/server/python/pki/server/deployment/pkiconfig.py
parent1c7a2735c82d6af1a871efd2c01f942387821a1f (diff)
downloadpki-c46caa19d9e1fb429fd77693abcca2fe668366aa.tar.gz
pki-c46caa19d9e1fb429fd77693abcca2fe668366aa.tar.xz
pki-c46caa19d9e1fb429fd77693abcca2fe668366aa.zip
Py3 modernization: misc manual fixes
Python 3's exception class has no message attribute. e.message can either be replaced with string representation of e or e.args[0]. Use print(line, end='') instead of sys.stdout.write(). With end='' no new line is appended. Use six.reraise() to reraise an exception. Remove sys.exc_clear() as it is no longer available in Python 3. Conditionally import shutil.WindowsError. Use six.move to import correct modules / function like quote, urlparse and configparser. Silence some pylint warnings. pylint doesn't understand six.moves magic and emits a import-error warning. Add additional tox envs to check for Python 3 compatibility.
Diffstat (limited to 'base/server/python/pki/server/deployment/pkiconfig.py')
-rw-r--r--base/server/python/pki/server/deployment/pkiconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/server/python/pki/server/deployment/pkiconfig.py b/base/server/python/pki/server/deployment/pkiconfig.py
index bb99e8e31..1198eea13 100644
--- a/base/server/python/pki/server/deployment/pkiconfig.py
+++ b/base/server/python/pki/server/deployment/pkiconfig.py
@@ -22,7 +22,7 @@
# PKI Deployment Constants
from __future__ import print_function
from __future__ import absolute_import
-from six.moves import input # pylint: disable=W0622
+from six.moves import input # pylint: disable=W0622,F0401
PKI_DEPLOYMENT_DEFAULT_CLIENT_DIR_PERMISSIONS = 0o0755
PKI_DEPLOYMENT_DEFAULT_DIR_PERMISSIONS = 0o0770