BeremizIDE.py
changeset 2450 5024c19ca8f0
parent 2432 dbc065a2f7a5
child 2459 21164625b393
--- a/BeremizIDE.py	Thu Oct 11 10:25:19 2018 +0300
+++ b/BeremizIDE.py	Thu Oct 11 12:00:40 2018 +0300
@@ -30,7 +30,6 @@
 import tempfile
 import shutil
 import random
-import types
 import time
 from time import time as gettime
 from threading import Lock, Timer, currentThread
@@ -717,7 +716,7 @@
 
     def GenerateMenuRecursive(self, items, menu):
         for kind, infos in items:
-            if isinstance(kind, types.ListType):
+            if isinstance(kind, list):
                 text, id = infos
                 submenu = wx.Menu('')
                 self.GenerateMenuRecursive(kind, submenu)