39 self.import_aliases = {} |
39 self.import_aliases = {} |
40 |
40 |
41 # in some cases we can't determine a qualified name |
41 # in some cases we can't determine a qualified name |
42 try: |
42 try: |
43 self.namespace = SecurityUtils.getModuleQualnameFromPath(filename) |
43 self.namespace = SecurityUtils.getModuleQualnameFromPath(filename) |
44 except SecurityUtils.InvalidModulePath: |
44 except SecurityUtils.InvalidModulePathError: |
45 self.namespace = "" |
45 self.namespace = "" |
46 |
46 |
47 def __runChecks(self, checkType): |
47 def __runChecks(self, checkType): |
48 """ |
48 """ |
49 Private method to run all enabled checks for a given check type. |
49 Private method to run all enabled checks for a given check type. |