ProjectController.py
changeset 2450 5024c19ca8f0
parent 2449 b0560adec4b7
child 2456 7373e3048167
--- a/ProjectController.py	Thu Oct 11 10:25:19 2018 +0300
+++ b/ProjectController.py	Thu Oct 11 12:00:40 2018 +0300
@@ -36,7 +36,6 @@
 import shutil
 import re
 import tempfile
-from types import ListType
 from threading import Timer
 from datetime import datetime
 from weakref import WeakKeyDictionary
@@ -73,7 +72,7 @@
 def ExtractChildrenTypesFromCatalog(catalog):
     children_types = []
     for n, d, _h, c in catalog:
-        if isinstance(c, ListType):
+        if isinstance(c, list):
             children_types.extend(ExtractChildrenTypesFromCatalog(c))
         else:
             children_types.append((n, GetClassImporter(c), d))
@@ -83,7 +82,7 @@
 def ExtractMenuItemsFromCatalog(catalog):
     menu_items = []
     for n, d, h, c in catalog:
-        if isinstance(c, ListType):
+        if isinstance(c, list):
             children = ExtractMenuItemsFromCatalog(c)
         else:
             children = []