fix pylint error '(import-error) Unable to import X'
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 11 Oct 2017 13:55:56 +0300
changeset 1869 49cdd843c006
parent 1868 616c3f4bcbcb
child 1870 4d070115b552
fix pylint error '(import-error) Unable to import X'
.pylint
svgui/pyjs/jsonrpc/__init__.py
svgui/pyjs/jsonrpc/django/jsonrpc.py
svgui/pyjs/jsonrpc/web2py/jsonrpc.py
tests/tools/check_source.sh
--- a/.pylint	Wed Oct 11 13:15:21 2017 +0300
+++ b/.pylint	Wed Oct 11 13:55:56 2017 +0300
@@ -270,7 +270,7 @@
 # (useful for modules/projects where namespaces are manipulated during runtime
 # and thus existing member attributes cannot be deduced by static analysis. It
 # supports qualified module names, as well as Unix pattern matching.
-ignored-modules=_ctypes
+ignored-modules=_ctypes,_winreg,winreg,django.core.serializers,__pyjamas__,gluon.contrib.simplejson
 
 # List of class names for which member attributes should not be checked (useful
 # for classes with dynamically set attributes). This supports the use of
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/svgui/pyjs/jsonrpc/__init__.py	Wed Oct 11 13:55:56 2017 +0300
@@ -0,0 +1,1 @@
+# module jsonrpc
--- a/svgui/pyjs/jsonrpc/django/jsonrpc.py	Wed Oct 11 13:15:21 2017 +0300
+++ b/svgui/pyjs/jsonrpc/django/jsonrpc.py	Wed Oct 11 13:55:56 2017 +0300
@@ -6,7 +6,7 @@
 from django.core.serializers import serialize
 
 
-from pyjs.jsonrpc import JSONRPCServiceBase
+from svgui.pyjs.jsonrpc.jsonrpc import JSONRPCServiceBase
 # JSONRPCService and jsonremote are used in combination to drastically
 # simplify the provision of JSONRPC services.  use as follows:
 #
--- a/svgui/pyjs/jsonrpc/web2py/jsonrpc.py	Wed Oct 11 13:15:21 2017 +0300
+++ b/svgui/pyjs/jsonrpc/web2py/jsonrpc.py	Wed Oct 11 13:55:56 2017 +0300
@@ -1,4 +1,4 @@
-from pyjs.jsonrpc import JSONRPCServiceBase
+from svgui.pyjs.jsonrpc.jsonrpc import JSONRPCServiceBase
 
 
 class JSONRPCService(JSONRPCServiceBase):
--- a/tests/tools/check_source.sh	Wed Oct 11 13:15:21 2017 +0300
+++ b/tests/tools/check_source.sh	Wed Oct 11 13:55:56 2017 +0300
@@ -254,6 +254,7 @@
     enable=$enable,E0701          # (bad-except-order) Bad except clauses order (X is an ancestor class of Y)
     enable=$enable,E0611          # (no-name-in-module) No name 'X' in module 'Y'
     enable=$enable,E0213          # (no-self-argument) Method should have "self" as first argument
+    enable=$enable,E0401          # (import-error) Unable to import 'X'
     # enable=
 
     options=