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/common/python/conf.py | |
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/common/python/conf.py')
-rw-r--r-- | base/common/python/conf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/common/python/conf.py b/base/common/python/conf.py index 67c59e610..ee5d028d1 100644 --- a/base/common/python/conf.py +++ b/base/common/python/conf.py @@ -11,7 +11,9 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +from __future__ import absolute_import +import sys +import os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the |