'Temporarily set a configuration value.
Parameters
attr : str
Configuration item name
value : object
The value to set temporarily.
Examples
>>> import astropy
>>> with astropy.conf.set_temp(\'use_color\', False):
...     pass
...     # console output will not contain color
>>> # console output contains color again...'

def set_temp(self, attr, value):

    if hasattr(self, attr):
        return self.__class__.__dict__[attr].set_temp(value)
    raise AttributeError(u"No    configuration    parameter    '{0}'".format(attr))
