# HG changeset patch # User Andrey Skvortsov # Date 1507631626 -10800 # Node ID 1df77c8092571f9369c508a74884432510822649 # Parent 4c5156dee87aa741fef81b9ece73c967e36e4d41 fix pylint warning '(wrong-import-position) Import "import X" should be placed at the top of the module' diff -r 4c5156dee87a -r 1df77c809257 controls/DebugVariablePanel/DebugVariablePanel.py --- a/controls/DebugVariablePanel/DebugVariablePanel.py Tue Oct 10 13:21:48 2017 +0300 +++ b/controls/DebugVariablePanel/DebugVariablePanel.py Tue Oct 10 13:33:46 2017 +0300 @@ -30,6 +30,8 @@ import wx import wx.lib.buttons + +# pylint: disable=wrong-import-position import matplotlib matplotlib.use('WX') # noqa import matplotlib.pyplot diff -r 4c5156dee87a -r 1df77c809257 svgui/pyjs/lib/pyjslib.py --- a/svgui/pyjs/lib/pyjslib.py Tue Oct 10 13:21:48 2017 +0300 +++ b/svgui/pyjs/lib/pyjslib.py Tue Oct 10 13:33:46 2017 +0300 @@ -232,7 +232,7 @@ # as comment on line 20 says # import sys should be below -import sys # noqa # pylint: disable=C0411,W0611 +import sys # noqa # pylint: disable=wrong-import-order,unused-import,wrong-import-position class BaseException: diff -r 4c5156dee87a -r 1df77c809257 tests/tools/check_source.sh --- a/tests/tools/check_source.sh Tue Oct 10 13:21:48 2017 +0300 +++ b/tests/tools/check_source.sh Tue Oct 10 13:33:46 2017 +0300 @@ -236,6 +236,7 @@ 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=$enable,C0413 # (wrong-import-position) Import "import X" should be placed at the top of the module # enable= options=