def double_percent_hex_encoding(t):
 return ('%25' + '%25'.join((hex(ord(c))[2:] for c in t)))

def double_percent_hex_encoding ( t ) : return ( '%25' + '%25' . join ( ( hex ( ord ( c ) ) [ 2 : ] for c in t ) ) )
double percent hex encoding method .