{ } Raw JSON

bundles / astropy latest / astropy / extern / configobj / configobj / Section / restore_default

function

astropy.extern.configobj.configobj:Section.restore_default

source: /astropy/extern/configobj/configobj.py :1036

Signature

def   restore_default ( self key )

Summary

Restore (and return) default value for the specified key.

Extended Summary

This method will only work for a ConfigObj that was created with a configspec and has been validated.

If there is no default value for this key, KeyError is raised.

Aliases

  • astropy.config.configuration.configobj.Section.restore_default