dialogs/ArrayTypeDialog.py
changeset 2450 5024c19ca8f0
parent 2439 f0a040f1de1b
child 3303 0ffb41625592
--- a/dialogs/ArrayTypeDialog.py	Thu Oct 11 10:25:19 2018 +0300
+++ b/dialogs/ArrayTypeDialog.py	Thu Oct 11 12:00:40 2018 +0300
@@ -24,7 +24,6 @@
 
 from __future__ import absolute_import
 import re
-from types import TupleType
 
 import wx
 
@@ -83,7 +82,7 @@
         for datatype in datatypes:
             self.BaseType.Append(datatype)
 
-        if isinstance(infos, TupleType) and infos[0] == "array":
+        if isinstance(infos, tuple) and infos[0] == "array":
             self.BaseType.SetStringSelection(infos[1])
             self.Dimensions.SetStrings(map("..".join, infos[2]))
         elif infos in datatypes: