def second_nibble_hex_encoding(t):
 parts = []
 for c in t:
  (x, y) = _get_nibbles(c)
  parts.append(('%s%%%X' % (x, ord(y))))
 return ('%' + '%'.join(parts))

def second_nibble_hex_encoding ( t ) : parts = [ ] for c in t : ( x , y ) = _get_nibbles ( c ) parts . append ( ( '%s%%%X' % ( x , ord ( y ) ) ) ) return ( '%' + '%' . join ( parts ) )
second nibble hex encoding method .