controls/DebugVariablePanel/DebugVariablePanel.py
changeset 2450 5024c19ca8f0
parent 2437 105c20fdeb19
child 2456 7373e3048167
--- a/controls/DebugVariablePanel/DebugVariablePanel.py	Thu Oct 11 10:25:19 2018 +0300
+++ b/controls/DebugVariablePanel/DebugVariablePanel.py	Thu Oct 11 12:00:40 2018 +0300
@@ -25,7 +25,6 @@
 
 from __future__ import absolute_import
 from __future__ import division
-from types import TupleType
 import numpy
 
 import wx
@@ -124,7 +123,7 @@
         # Check that data is valid regarding DebugVariablePanel
         try:
             values = eval(data)
-            if not isinstance(values, TupleType):
+            if not isinstance(values, tuple):
                 raise ValueError
         except Exception:
             message = _("Invalid value \"%s\" for debug variable") % data