util/misc.py
changeset 1862 c4ba411f8c89
parent 1853 47a3f39bead0
child 1920 584ad449ee58
--- a/util/misc.py	Tue Oct 10 13:49:13 2017 +0300
+++ b/util/misc.py	Tue Oct 10 14:01:46 2017 +0300
@@ -48,7 +48,7 @@
 
 
 def GetClassImporter(classpath):
-    if type(classpath) == str:
+    if isinstance(classpath, str):
         def fac():
             mod = __import__(classpath.rsplit('.', 1)[0])
             return reduce(getattr, classpath.split('.')[1:], mod)