From 8627174e5bcc03616ba2185503fc6b6a6cf87527 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/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'base/common/python/conf.py') 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 -- cgit