def _check_type(value, types, description, application_name):
 if (not isinstance(value, types)):
  raise ConfigurationError(u"Application '{application_name}' has a config error. {description}; got type '{type}'.".format(application_name=application_name, description=description, type=type(value).__name__))

def _check_type ( value , types , description , application_name ) : if ( not isinstance ( value , types ) ) : raise ConfigurationError ( u"Application '{application_name}' has a config error. {description}; got type '{type}'." . format ( application_name = application_name , description = description , type = type ( value ) . __name__ ) )
checks value has type in types .