(cls)
return cls._instance
Returns the single instance of the configuration object.
Returns the single instance of the configuration object.
Returns the single instance of the configuration object .
def instance(cls):
        """Returns the single instance of the configuration object."""
        if cls._instance is None:
            cfile = get_user_config_file()
            try:
                config = cls(cfile)
            except IOError:
                # No config file yet, whatever
                config = cls()
            cls._instance = config
        return cls._instance
def instance ( cls ) : if cls . _instance is None : cfile = get_user_config_file ( ) try : config = cls ( cfile ) except IOError : # No config file yet, whatever config = cls ( ) cls . _instance = config return cls . _instance