summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/encoder.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:11 +0200
commit71148b8f79a5d6ba0c949a3ca0acf5aec6321f0a (patch)
tree2ae9b55f25b94c5f90b114de17c1e442499a3872 /base/common/python/pki/encoder.py
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/common/python/pki/encoder.py')
-rw-r--r--base/common/python/pki/encoder.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/common/python/pki/encoder.py b/base/common/python/pki/encoder.py
index 6d5725f0f..cebcc566b 100644
--- a/base/common/python/pki/encoder.py
+++ b/base/common/python/pki/encoder.py
@@ -1,3 +1,4 @@
+from __future__ import absolute_import
import json
TYPES = {}