# HG changeset patch # User Andrey Skvortsov # Date 1507630908 -10800 # Node ID 4c5156dee87aa741fef81b9ece73c967e36e4d41 # Parent 524ff4dbb7d96b3111b88630ad08866287f0f37a fix pylint warning '(import-self) Module import itself' diff -r 524ff4dbb7d9 -r 4c5156dee87a py_ext/__init__.py --- 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 diff -r 524ff4dbb7d9 -r 4c5156dee87a tests/tools/check_source.sh --- 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= diff -r 524ff4dbb7d9 -r 4c5156dee87a xmlclass/__init__.py --- 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