Home
last modified time | relevance | path

Searched refs:hexescape (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_urllib.py17 def hexescape(char): function
602 self.assertEqual(hexescape(char), result,
604 (char, hexescape(char), result))
606 self.assertEqual(hexescape(char), result,
609 (char, hexescape(char), result))
625 self.assertEqual(result, hexescape(' '),
626 "using quote(): %s != %s" % (result, hexescape(' ')))
631 expect = given.replace(' ', hexescape(' '))
657 given = hexescape(chr(num))
707 given = 'ab%sd' % hexescape('c')
[all …]
/external/python/cpython3/Lib/test/
Dtest_urllib.py25 def hexescape(char): function
818 self.assertEqual(hexescape(char), result,
821 (char, hexescape(char), result))
823 self.assertEqual(hexescape(char), result,
826 (char, hexescape(char), result))
841 self.assertEqual(result, hexescape(' '),
842 "using quote(): %r != %r" % (result, hexescape(' ')))
847 expect = given.replace(' ', hexescape(' '))
953 given = hexescape(chr(num))
1022 given = 'ab%sd' % hexescape('c')
[all …]
/external/python/cpython2/Objects/
Dunicodeobject.c2884 goto hexescape; in PyUnicode_DecodeUnicodeEscape()
2890 goto hexescape; in PyUnicode_DecodeUnicodeEscape()
2896 hexescape: in PyUnicode_DecodeUnicodeEscape()
/external/python/cpython3/Objects/
Dunicodeobject.c6020 goto hexescape; in _PyUnicode_DecodeUnicodeEscape()
6026 goto hexescape; in _PyUnicode_DecodeUnicodeEscape()
6032 hexescape: in _PyUnicode_DecodeUnicodeEscape()