parameters: (self, namespace=vars(__builtin__))
docstring: Install this ImportManager into the specified namespace.
docstring_summary: Install this ImportManager into the specified namespace.
docstring_tokens: Install this ImportManager into the specified namespace .
function: def install(self, namespace=vars(__builtin__)):
          "Install this ImportManager into the specified namespace."
  
          if isinstance(namespace, _ModuleType):
              namespace = vars(namespace)
  
          # Note: we have no notion of "chaining"
  
          # Record the previous import hook, then install our own.
          self.previous_importer = namespace['__import__']
          self.namespace = namespace
          namespace['__import__'] = self._import_hook
function_tokens: def install ( self , namespace = vars ( __builtin__ ) ) : if isinstance ( namespace , _ModuleType ) : namespace = vars ( namespace ) # Note: we have no notion of "chaining" # Record the previous import hook, then install our own. self . previous_importer = namespace [ '__import__' ] self . namespace = namespace namespace [ '__import__' ] = self . _import_hook