From 71148b8f79a5d6ba0c949a3ca0acf5aec6321f0a Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 16 Aug 2015 19:00:00 +0200 Subject: 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/ --- base/common/python/pki/system.py | 1 + 1 file changed, 1 insertion(+) (limited to 'base/common/python/pki/system.py') diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py index b3d5fc641..f1128fca1 100644 --- a/base/common/python/pki/system.py +++ b/base/common/python/pki/system.py @@ -19,6 +19,7 @@ # All rights reserved. # +from __future__ import absolute_import import pki.encoder as encoder import xml.etree.ElementTree as ETree import os -- cgit