components/resources/protobufs/binary_proto_generator.py
def load_module(self, fullname):
    """Loads the module specified by |fullname| and returns the module."""
    if fullname in sys.modules:
      # Per PEP #302, if |fullname| is in sys.modules, it must be returned.
      return sys.modules[fullname]

    if (not fullname.startswith('google.protobuf.') or
        not self._module_exists(fullname)):
      # Per PEP #302, raise ImportError if the requested module/package
      # cannot be loaded. This should never get reached for this simple loader,
      # but is included for completeness.
      raise ImportError(fullname)

    filepath = self._fullname_to_filepath(fullname)
    return imp.load_source(fullname, filepath)
Loads the module specified by |fullname| and returns the module.
Loads the module specified by |fullname| and returns the module.
Loads the module specified by |fullname| and returns the module .
def load_module(self, fullname):
    if fullname in sys.modules:
      return sys.modules[fullname]
    if (not fullname.startswith('google.protobuf.') or
        not self._module_exists(fullname)):
      raise ImportError(fullname)
    filepath = self._fullname_to_filepath(fullname)
    return imp.load_source(fullname, filepath)
def load_module ( self , fullname ) : if fullname in sys . modules : return sys . modules [ fullname ] if ( not fullname . startswith ( 'google.protobuf.' ) or not self . _module_exists ( fullname ) ) : raise ImportError ( fullname ) filepath = self . _fullname_to_filepath ( fullname ) return imp . load_source ( fullname , filepath )
Loads the module specified by |fullname| and returns the module.
Loads the module specified by |fullname| and returns the module .
"""Loads the module specified by |fullname| and returns the module.""" # Per PEP #302, if |fullname| is in sys.modules, it must be returned. # Per PEP #302, raise ImportError if the requested module/package # cannot be loaded. This should never get reached for this simple loader, # but is included for completeness.
self
fullname