'Parse the configspec.'

def _handle_configspec(self, configspec):

    if (not isinstance(configspec, ConfigObj)):
        try:
            configspec = ConfigObj(configspec, raise_errors=True, file_error=True, _inspec=True)
        except ConfigObjError as e:
            raise ConfigspecError(('Parsing    configspec    failed:    %s' % e))
        except IOError as e:
            raise IOError(('Reading    configspec    failed:    %s' % e))
    self.configspec = configspec
