equal
deleted
inserted
replaced
42 return False |
42 return False |
43 return True |
43 return True |
44 |
44 |
45 |
45 |
46 def GetClassImporter(classpath): |
46 def GetClassImporter(classpath): |
47 if type(classpath)==str: |
47 if type(classpath) == str: |
48 def fac(): |
48 def fac(): |
49 mod=__import__(classpath.rsplit('.', 1)[0]) |
49 mod = __import__(classpath.rsplit('.', 1)[0]) |
50 return reduce(getattr, classpath.split('.')[1:], mod) |
50 return reduce(getattr, classpath.split('.')[1:], mod) |
51 return fac |
51 return fac |
52 else: |
52 else: |
53 return classpath |
53 return classpath |
54 |
54 |