controls/DebugVariablePanel/DebugVariableTextViewer.py
changeset 2450 5024c19ca8f0
parent 2437 105c20fdeb19
child 2509 9c5f835b031e
--- a/controls/DebugVariablePanel/DebugVariableTextViewer.py	Thu Oct 11 10:25:19 2018 +0300
+++ b/controls/DebugVariablePanel/DebugVariableTextViewer.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 wx
 
@@ -88,7 +87,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