def _restore_bool(name, value):
 lowercase_value = value.lower()
 if (lowercase_value not in ('true', 'false')):
  raise errors.Error('Expected True or False for {0} but found {1}'.format(name, value))
 return (lowercase_value == 'true')

def _restore_bool ( name , value ) : lowercase_value = value . lower ( ) if ( lowercase_value not in ( 'true' , 'false' ) ) : raise errors . Error ( 'Expected True or False for {0} but found {1}' . format ( name , value ) ) return ( lowercase_value == 'true' )
restores an boolean key-value pair from a renewal config file .