def is_boolean(value):
 if isinstance(value, string_type):
  try:
   return bool_dict[value.lower()]
  except KeyError:
   raise VdtTypeError(value)
 if (value == False):
  return False
 elif (value == True):
  return True
 else:
  raise VdtTypeError(value)

def is_boolean ( value ) : if isinstance ( value , string_type ) : try : return bool_dict [ value . lower ( ) ] except KeyError : raise VdtTypeError ( value ) if ( value == False ) : return False elif ( value == True ) : return True else : raise VdtTypeError ( value )
check if the value represents a boolean .