editors/DataTypeEditor.py
changeset 2450 5024c19ca8f0
parent 2439 f0a040f1de1b
child 2737 38afed869ff6
--- a/editors/DataTypeEditor.py	Thu Oct 11 10:25:19 2018 +0300
+++ b/editors/DataTypeEditor.py	Thu Oct 11 12:00:40 2018 +0300
@@ -26,7 +26,6 @@
 
 from __future__ import absolute_import
 import re
-from types import TupleType
 from six.moves import xrange
 
 import wx
@@ -83,7 +82,7 @@
             colname = self.GetColLabelValue(col, False)
             value = self.data[row].get(colname, "")
 
-            if colname == "Type" and isinstance(value, TupleType):
+            if colname == "Type" and isinstance(value, tuple):
                 if value[0] == "array":
                     return "ARRAY [%s] OF %s" % (",".join(map("..".join, value[2])), value[1])
             return value