--- a/py_ext/__init__.py Tue Oct 10 12:50:10 2017 +0300
+++ b/py_ext/__init__.py Tue Oct 10 13:21:48 2017 +0300
@@ -23,6 +23,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
from __future__ import absolute_import
-from py_ext.py_ext import *
-from py_ext.PythonEditor import PythonEditor
-from py_ext.PythonFileCTNMixin import PythonFileCTNMixin
+from .py_ext import *
+from .PythonEditor import PythonEditor
+from .PythonFileCTNMixin import PythonFileCTNMixin
--- a/tests/tools/check_source.sh Tue Oct 10 12:50:10 2017 +0300
+++ b/tests/tools/check_source.sh Tue Oct 10 13:21:48 2017 +0300
@@ -235,6 +235,7 @@
enable=$enable,W0631 # (undefined-loop-variable) Using possibly undefined loop variable 'X'
enable=$enable,W0104 # (pointless-statement) Statement seems to have no effect
enable=$enable,W0107 # (unnecessary-pass) Unnecessary pass statement
+ enable=$enable,W0406 # (import-self) Module import itself
# enable=
options=
--- a/xmlclass/__init__.py Tue Oct 10 12:50:10 2017 +0300
+++ b/xmlclass/__init__.py Tue Oct 10 13:21:48 2017 +0300
@@ -24,13 +24,12 @@
# Package initialisation
from __future__ import absolute_import
-from xmlclass.xmlclass import \
- ClassFactory, \
- GenerateParser, \
- DefaultElementClass, \
- GetAttributeValue, \
- time_model, \
- CreateNode, \
- NodeSetAttr, \
- NodeRenameAttr
-from xmlclass.xsdschema import XSDClassFactory, GenerateParserFromXSD, GenerateParserFromXSDstring
+from .xmlclass import (ClassFactory,
+ GenerateParser,
+ DefaultElementClass,
+ GetAttributeValue,
+ time_model,
+ CreateNode,
+ NodeSetAttr,
+ NodeRenameAttr)
+from .xsdschema import XSDClassFactory, GenerateParserFromXSD, GenerateParserFromXSDstring