# HG changeset patch # User Andrey Skvortsov # Date 1538390630 -10800 # Node ID 3a883a76abe00fc64f379b4eab9cf227a2d6b6b3 # Parent 4e7ebd6ec2487b5316bb819e8af8774b5bdc150f cleanup: pylint, W0111 # (assign-to-new-keyword) Name async will become a keyword in Python 3.7 diff -r 4e7ebd6ec248 -r 3a883a76abe0 svgui/pyjs/lib/pyjslib.py --- a/svgui/pyjs/lib/pyjslib.py Mon Oct 01 13:31:52 2018 +0300 +++ b/svgui/pyjs/lib/pyjslib.py Mon Oct 01 13:43:50 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 +# pylint: disable=too-many-function-args,undefined-variable,no-absolute-import,assign-to-new-keyword # iteration from Bob Ippolito's Iteration in JavaScript diff -r 4e7ebd6ec248 -r 3a883a76abe0 tests/tools/check_source.sh --- a/tests/tools/check_source.sh Mon Oct 01 13:31:52 2018 +0300 +++ b/tests/tools/check_source.sh Mon Oct 01 13:43:50 2018 +0300 @@ -287,6 +287,7 @@ enable=$enable,W0232 # (no-init) Class has no __init__ method enable=$enable,W0233 # (non-parent-init-called) __init__ method from a non direct base class 'X' is called enable=$enable,W0601 # (global-variable-undefined) Global variable 'X' undefined at the module level + enable=$enable,W0111 # (assign-to-new-keyword) Name async will become a keyword in Python 3.7 enable=$enable,W0623 # (redefine-in-handler) Redefining name 'X' from outer scope (line Y) in exception handler enable=$enable,E1310 # (bad-str-strip-call) Suspicious argument in str.strip call enable=$enable,W0106 # (expression-not-assigned) Expression "X" is assigned to nothing