dialogs/ArrayTypeDialog.py
changeset 2459 21164625b393
parent 2450 5024c19ca8f0
child 3303 0ffb41625592
--- a/dialogs/ArrayTypeDialog.py	Fri Nov 23 11:01:20 2018 +0100
+++ b/dialogs/ArrayTypeDialog.py	Fri Nov 23 12:13:24 2018 +0100
@@ -24,7 +24,6 @@
 
 from __future__ import absolute_import
 import re
-from types import TupleType
 
 import wx
 
@@ -34,7 +33,7 @@
 #                                  Helpers
 # -------------------------------------------------------------------------------
 
-DIMENSION_MODEL = re.compile("([0-9]+)\.\.([0-9]+)$")
+DIMENSION_MODEL = re.compile(r"([0-9]+)\.\.([0-9]+)$")
 
 # -------------------------------------------------------------------------------
 #                             Array Type Dialog
@@ -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: