(self, stream=None)
Saves the configuration.

        @param stream: name of a file or a file object. The configuration will be saved
          there. Can be omitted, in this case, the user-level configuration file will
          be overwritten.
Saves the configuration.
Saves the configuration .
def save(self, stream=None):
        """Saves the configuration.

        @param stream: name of a file or a file object. The configuration will be saved
          there. Can be omitted, in this case, the user-level configuration file will
          be overwritten.
        """
        stream = stream or get_user_config_file()
        if not hasattr(stream, "write") or not hasattr(stream, "close"):
            stream = open(stream, "w")
            file_was_open = True
        self._config.write(stream)
        if file_was_open:
            stream.close()
def save ( self , stream = None ) : stream = stream or get_user_config_file ( ) if not hasattr ( stream , "write" ) or not hasattr ( stream , "close" ) : stream = open ( stream , "w" ) file_was_open = True self . _config . write ( stream ) if file_was_open : stream . close ( )