def parse_hsl(args, alpha):
 types = [arg.type for arg in args]
 if (types == [u'INTEGER', u'PERCENTAGE', u'PERCENTAGE']):
  hsl = [arg.value for arg in args[:3]]
  (r, g, b) = hsl_to_rgb(*hsl)
  return RGBA(r, g, b, alpha)

def parse_hsl ( args , alpha ) : types = [ arg . type for arg in args ] if ( types == [ u'INTEGER' , u'PERCENTAGE' , u'PERCENTAGE' ] ) : hsl = [ arg . value for arg in args [ : 3 ] ] ( r , g , b ) = hsl_to_rgb ( * hsl ) return RGBA ( r , g , b , alpha )
if args is a list of 1 integer token and 2 percentage tokens .