Lines Matching full:globals
86 def _import_hook(self, fqname, globals=None, locals=None, fromlist=None):
92 parent = self._determine_import_context(globals)
149 def _determine_import_context(self, globals):
158 if not globals or not globals.get('__importer__'):
159 # globals does not refer to one of our modules or packages. That
164 # The globals refer to a module or package of ours. It will define
166 parent_fqname = globals['__name__']
170 if globals['__ispkg__']:
172 assert globals is parent.__dict__