def _encode(self, request):
    return [''.join([(((' ~`!@#$%^&*()+=[]\\{}|;\':",./<>?'.find(ch) > (- 1)) and hex(ord(ch)).replace('0x', '%').upper()) or ch) for ch in list(bit)]) for bit in request]
def _encode(self, request):
    return [.join([(((' ~`!@#$%^&*()+=[]\\{}|;\':",./<>?'.find(ch) > (- 1)) and hex(ord(ch)).replace('0x', '%').upper()) or ch) for ch in list(bit)]) for bit in request]