python3 support: pylint, W1601 # (apply-builtin) apply built-in referenced
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 09 Oct 2018 12:05:43 +0300
changeset 2440 45b43f275ca1
parent 2439 f0a040f1de1b
child 2441 c553769a65af
python3 support: pylint, W1601 # (apply-builtin) apply built-in referenced
controls/DebugVariablePanel/DebugVariableGraphicViewer.py
tests/tools/check_source.sh
--- a/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Tue Oct 09 11:56:45 2018 +0300
+++ b/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Tue Oct 09 12:05:43 2018 +0300
@@ -1326,11 +1326,11 @@
         # Get value and forced flag for each variable displayed in graph
         # If cursor tick is not defined get value and flag of last received
         # or get value and flag of variable at cursor tick
-        values, forced = apply(zip, [(
+        args = [(
             item.GetValue(self.CursorTick)
             if self.CursorTick is not None
-            else (item.GetValue(), item.IsForced())
-        ) for item in self.Items])
+            else (item.GetValue(), item.IsForced())) for item in self.Items]
+        values, forced = zip(*args)
 
         # Get path of each variable displayed simplified using panel variable
         # name mask
--- a/tests/tools/check_source.sh	Tue Oct 09 11:56:45 2018 +0300
+++ b/tests/tools/check_source.sh	Tue Oct 09 12:05:43 2018 +0300
@@ -358,7 +358,8 @@
     enable=$enable,W1648          # (bad-python3-import) Module moved in Python 3
     enable=$enable,W1613          # (xrange-builtin) xrange built-in referenced
     enable=$enable,W1612          # (unicode-builtin) unicode built-in referenced
-    enable=$enable,W1619          #(old-division) division w/o __future__ statement
+    enable=$enable,W1619          # (old-division) division w/o __future__ statement
+    enable=$enable,W1601          # (apply-builtin) apply built-in referenced
     # enable=
 
     options=