controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 2440 45b43f275ca1
parent 2437 105c20fdeb19
child 2450 5024c19ca8f0
--- 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