diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-08-16 19:00:00 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-04-02 07:05:46 +0200 |
commit | 8627174e5bcc03616ba2185503fc6b6a6cf87527 (patch) | |
tree | ce77dd8d8e3652a36e1f3e06493b86c81f4b8343 /base/server/upgrade/10.2.2/02-EnableWebApplicationAutoDeploy | |
parent | ea5bd7fa1fc21b87c07a233c66fbe51d7f3ab9c1 (diff) | |
download | pki-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/upgrade/10.2.2/02-EnableWebApplicationAutoDeploy')
-rwxr-xr-x | base/server/upgrade/10.2.2/02-EnableWebApplicationAutoDeploy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/server/upgrade/10.2.2/02-EnableWebApplicationAutoDeploy b/base/server/upgrade/10.2.2/02-EnableWebApplicationAutoDeploy index 6e2731d27..4baae6dca 100755 --- a/base/server/upgrade/10.2.2/02-EnableWebApplicationAutoDeploy +++ b/base/server/upgrade/10.2.2/02-EnableWebApplicationAutoDeploy @@ -19,6 +19,7 @@ # All rights reserved. # +from __future__ import absolute_import import os from lxml import etree |