def validate_css(stylesheet, images):
 assert isinstance(stylesheet, unicode)
 validator = StylesheetValidator(images)
 return validator.parse_and_validate(stylesheet)

def validate_css ( stylesheet , images ) : assert isinstance ( stylesheet , unicode ) validator = StylesheetValidator ( images ) return validator . parse_and_validate ( stylesheet )
validate and re-serialize the user submitted stylesheet .