# HG changeset patch # User Andrey Skvortsov # Date 1507719356 -10800 # Node ID 49cdd843c00648e20a37da220d48da818b839845 # Parent 616c3f4bcbcb9f75a88695d1e6c814654b74d58b fix pylint error '(import-error) Unable to import X' diff -r 616c3f4bcbcb -r 49cdd843c006 .pylint --- 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 diff -r 616c3f4bcbcb -r 49cdd843c006 svgui/pyjs/jsonrpc/__init__.py --- /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 diff -r 616c3f4bcbcb -r 49cdd843c006 svgui/pyjs/jsonrpc/django/jsonrpc.py --- 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: # diff -r 616c3f4bcbcb -r 49cdd843c006 svgui/pyjs/jsonrpc/web2py/jsonrpc.py --- 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): diff -r 616c3f4bcbcb -r 49cdd843c006 tests/tools/check_source.sh --- 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=