summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/deployment/scriptlets
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-08-16 19:00:00 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-04-02 07:05:46 +0200
commit8627174e5bcc03616ba2185503fc6b6a6cf87527 (patch)
treece77dd8d8e3652a36e1f3e06493b86c81f4b8343 /base/server/python/pki/server/deployment/scriptlets
parentea5bd7fa1fc21b87c07a233c66fbe51d7f3ab9c1 (diff)
downloadpki-8627174e5bcc03616ba2185503fc6b6a6cf87527.tar.gz
pki-8627174e5bcc03616ba2185503fc6b6a6cf87527.tar.xz
pki-8627174e5bcc03616ba2185503fc6b6a6cf87527.zip
Py3 modernization: libmodernize.fixes.fix_import
Enforce absolute imports or explicit relative imports. Python 3 no longer supports implicit relative imports, that is unqualified imports from a module's directory. In order to load a module from the same directory inside a package, use from . import module The future feature 'from __future__ import absolute_import' ensures that pki uses absolute imports on Python 2, too. See https://www.python.org/dev/peps/pep-0328/
Diffstat (limited to 'base/server/python/pki/server/deployment/scriptlets')
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/configuration.py1
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/finalization.py2
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/infrastructure_layout.py2
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/initialization.py2
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/instance_layout.py1
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/selinux_setup.py1
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/slot_substitution.py2
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/subsystem_layout.py2
-rw-r--r--base/server/python/pki/server/deployment/scriptlets/webapp_deployment.py1
9 files changed, 14 insertions, 0 deletions
diff --git a/base/server/python/pki/server/deployment/scriptlets/configuration.py b/base/server/python/pki/server/deployment/scriptlets/configuration.py
index e7b257f7d..278ac644b 100644
--- a/base/server/python/pki/server/deployment/scriptlets/configuration.py
+++ b/base/server/python/pki/server/deployment/scriptlets/configuration.py
@@ -19,6 +19,7 @@
# All rights reserved.
#
+from __future__ import absolute_import
import json
import re
diff --git a/base/server/python/pki/server/deployment/scriptlets/finalization.py b/base/server/python/pki/server/deployment/scriptlets/finalization.py
index 4c98cc499..3c4f469ac 100644
--- a/base/server/python/pki/server/deployment/scriptlets/finalization.py
+++ b/base/server/python/pki/server/deployment/scriptlets/finalization.py
@@ -19,6 +19,8 @@
# All rights reserved.
#
+from __future__ import absolute_import
+
# PKI Deployment Imports
from .. import pkiconfig as config
from .. import pkimanifest as manifest
diff --git a/base/server/python/pki/server/deployment/scriptlets/infrastructure_layout.py b/base/server/python/pki/server/deployment/scriptlets/infrastructure_layout.py
index fcd9fa63e..76a82c68e 100644
--- a/base/server/python/pki/server/deployment/scriptlets/infrastructure_layout.py
+++ b/base/server/python/pki/server/deployment/scriptlets/infrastructure_layout.py
@@ -19,6 +19,8 @@
# All rights reserved.
#
+from __future__ import absolute_import
+
# PKI Deployment Imports
from .. import pkiconfig as config
from .. import pkimessages as log
diff --git a/base/server/python/pki/server/deployment/scriptlets/initialization.py b/base/server/python/pki/server/deployment/scriptlets/initialization.py
index 9545c4d4e..532149943 100644
--- a/base/server/python/pki/server/deployment/scriptlets/initialization.py
+++ b/base/server/python/pki/server/deployment/scriptlets/initialization.py
@@ -19,6 +19,8 @@
# All rights reserved.
#
+from __future__ import absolute_import
+
# PKI Deployment Imports
from .. import pkiconfig as config
from .. import pkimessages as log
diff --git a/base/server/python/pki/server/deployment/scriptlets/instance_layout.py b/base/server/python/pki/server/deployment/scriptlets/instance_layout.py
index 6cd98bb35..4ed505143 100644
--- a/base/server/python/pki/server/deployment/scriptlets/instance_layout.py
+++ b/base/server/python/pki/server/deployment/scriptlets/instance_layout.py
@@ -20,6 +20,7 @@
#
# System Imports
+from __future__ import absolute_import
import os
# PKI Deployment Imports
diff --git a/base/server/python/pki/server/deployment/scriptlets/selinux_setup.py b/base/server/python/pki/server/deployment/scriptlets/selinux_setup.py
index 7075f6e56..0fa3e6c11 100644
--- a/base/server/python/pki/server/deployment/scriptlets/selinux_setup.py
+++ b/base/server/python/pki/server/deployment/scriptlets/selinux_setup.py
@@ -19,6 +19,7 @@
# All rights reserved.
#
+from __future__ import absolute_import
import selinux
import time
if selinux.is_selinux_enabled():
diff --git a/base/server/python/pki/server/deployment/scriptlets/slot_substitution.py b/base/server/python/pki/server/deployment/scriptlets/slot_substitution.py
index cbcd7e342..b35989cc9 100644
--- a/base/server/python/pki/server/deployment/scriptlets/slot_substitution.py
+++ b/base/server/python/pki/server/deployment/scriptlets/slot_substitution.py
@@ -19,6 +19,8 @@
# All rights reserved.
#
+from __future__ import absolute_import
+
# PKI Deployment Imports
from .. import pkiconfig as config
from .. import pkimessages as log
diff --git a/base/server/python/pki/server/deployment/scriptlets/subsystem_layout.py b/base/server/python/pki/server/deployment/scriptlets/subsystem_layout.py
index 2cad0cf4a..598a235c9 100644
--- a/base/server/python/pki/server/deployment/scriptlets/subsystem_layout.py
+++ b/base/server/python/pki/server/deployment/scriptlets/subsystem_layout.py
@@ -19,6 +19,8 @@
# All rights reserved.
#
+from __future__ import absolute_import
+
# PKI Deployment Imports
from .. import pkiconfig as config
from .. import pkimessages as log
diff --git a/base/server/python/pki/server/deployment/scriptlets/webapp_deployment.py b/base/server/python/pki/server/deployment/scriptlets/webapp_deployment.py
index edbfafab3..2dafe6f81 100644
--- a/base/server/python/pki/server/deployment/scriptlets/webapp_deployment.py
+++ b/base/server/python/pki/server/deployment/scriptlets/webapp_deployment.py
@@ -20,6 +20,7 @@
#
# System Imports
+from __future__ import absolute_import
import os
# PKI Deployment Imports