(self, stream=None)
Loads the configuration from the given file.

        @param stream: name of a file or a file object. The configuration will be loaded
          from here. Can be omitted, in this case, the user-level configuration is
          loaded.
Loads the configuration from the given file.
Loads the configuration from the given file .
def load(self, stream=None):
        """Loads the configuration from the given file.

        @param stream: name of a file or a file object. The configuration will be loaded
          from here. Can be omitted, in this case, the user-level configuration is
          loaded.
        """
        stream = stream or get_user_config_file()
        if isinstance(stream, str):
            stream = open(stream, "r")
            file_was_open = True
        self._config.readfp(stream)
        self._filename = getattr(stream, "name", None)
        if file_was_open:
            stream.close()
def load ( self , stream = None ) : stream = stream or get_user_config_file ( ) if isinstance ( stream , str ) : stream = open ( stream , "r" ) file_was_open = True self . _config . readfp ( stream ) self . _filename = getattr ( stream , "name" , None ) if file_was_open : stream . close ( )