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
committerChristian Heimes <cheimes@redhat.com>2015-08-17 21:14:11 +0200
commit71148b8f79a5d6ba0c949a3ca0acf5aec6321f0a (patch)
tree2ae9b55f25b94c5f90b114de17c1e442499a3872 /base/server/python/pki/server/deployment/scriptlets
parent5935b765aaeb0f30844812db057020b1aaea4559 (diff)
downloadpki-71148b8f79a5d6ba0c949a3ca0acf5aec6321f0a.tar.gz
pki-71148b8f79a5d6ba0c949a3ca0acf5aec6321f0a.tar.xz
pki-71148b8f79a5d6ba0c949a3ca0acf5aec6321f0a.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/security_databases.py2
-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
10 files changed, 16 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 fbcb1ccaa..c6e890235 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
# PKI Deployment Imports
diff --git a/base/server/python/pki/server/deployment/scriptlets/finalization.py b/base/server/python/pki/server/deployment/scriptlets/finalization.py
index b92965929..56ddf0219 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 630ef38cc..365bfb763 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 378343eb5..dae5a4b14 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/security_databases.py b/base/server/python/pki/server/deployment/scriptlets/security_databases.py
index 3ffe452bb..27285dd3e 100644
--- a/base/server/python/pki/server/deployment/scriptlets/security_databases.py
+++ b/base/server/python/pki/server/deployment/scriptlets/security_databases.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/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