Show More
@@ -98,12 +98,8 b' class CannedFunction(CannedObject):' | |||||
98 | def get_object(self, g=None): |
|
98 | def get_object(self, g=None): | |
99 | # try to load function back into its module: |
|
99 | # try to load function back into its module: | |
100 | if not self.module.startswith('__'): |
|
100 | if not self.module.startswith('__'): | |
101 | try: |
|
101 | __import__(self.module) | |
102 |
|
|
102 | g = sys.modules[self.module].__dict__ | |
103 | except ImportError: |
|
|||
104 | pass |
|
|||
105 | else: |
|
|||
106 | g = sys.modules[self.module].__dict__ |
|
|||
107 |
|
103 | |||
108 | if g is None: |
|
104 | if g is None: | |
109 | g = {} |
|
105 | g = {} |
General Comments 0
You need to be logged in to leave comments.
Login now