# HG changeset patch # User Andrey Skvortsov # Date 1539156777 -10800 # Node ID 235f847be37e1172d6a6f16176576922fb80c87a # Parent 75a274023970140c448274ad691b4e9b5d5ffb37 python3 support: pylint, W1629 # (nonzero-method) __nonzero__ method defined diff -r 75a274023970 -r 235f847be37e svgui/pyjs/lib/pyjslib.py --- 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 diff -r 75a274023970 -r 235f847be37e tests/tools/check_source.sh --- 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=