python3 support: pylint, W1629 # (nonzero-method) __nonzero__ method defined
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 10 Oct 2018 10:32:57 +0300
changeset 2444 235f847be37e
parent 2443 75a274023970
child 2445 4f7abbc8506f
python3 support: pylint, W1629 # (nonzero-method) __nonzero__ method defined
svgui/pyjs/lib/pyjslib.py
tests/tools/check_source.sh
--- a/svgui/pyjs/lib/pyjslib.py	Wed Oct 10 10:26:27 2018 +0300
+++ b/svgui/pyjs/lib/pyjslib.py	Wed Oct 10 10:32:57 2018 +0300
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# pylint: disable=too-many-function-args,undefined-variable,no-absolute-import,assign-to-new-keyword
+# pylint: disable=too-many-function-args,undefined-variable,no-absolute-import,assign-to-new-keyword,nonzero-method
 
 # iteration from Bob Ippolito's Iteration in JavaScript
 
--- a/tests/tools/check_source.sh	Wed Oct 10 10:26:27 2018 +0300
+++ b/tests/tools/check_source.sh	Wed Oct 10 10:32:57 2018 +0300
@@ -363,6 +363,7 @@
     enable=$enable,W1659          # (xreadlines-attribute) Accessing a removed xreadlines attribute
     enable=$enable,W1607          # (file-builtin) file built-in referenced
     enable=$enable,W1606          # (execfile-builtin) execfile built-in referenced
+    enable=$enable,W1629          # (nonzero-method) __nonzero__ method defined
     # enable=
 
     options=