cleanup: pylint, W0111 # (assign-to-new-keyword) Name async will become a keyword in Python 3.7
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 01 Oct 2018 13:43:50 +0300
changeset 2411 3a883a76abe0
parent 2410 4e7ebd6ec248
child 2412 22b1879a3c15
cleanup: pylint, W0111 # (assign-to-new-keyword) Name async will become a keyword in Python 3.7
svgui/pyjs/lib/pyjslib.py
tests/tools/check_source.sh
--- 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
 
--- 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