Home
last modified time | relevance | path

Searched refs:escape_encode (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/encodings/
Dstring_escape.py12 encode = codecs.escape_encode
17 return codecs.escape_encode(input, self.errors)[0]
/external/python/apitools/apitools/base/protorpclite/
Ddescriptor.py136 messages.BytesField: lambda value: codecs.escape_encode(value)[0],
/external/python/cpython2/Modules/
D_codecsmodule.c176 escape_encode(PyObject *self, in escape_encode() function
1064 {"escape_encode", escape_encode, METH_VARARGS},
/external/python/cpython3/Lib/test/
Dtest_codecs.py1455 self.assertEqual(codecs.escape_encode(br'\x00')[1], 4)
2579 self.assertEqual(codecs.escape_encode(data), output)
2580 self.assertRaises(TypeError, codecs.escape_encode, 'spam')
2581 self.assertRaises(TypeError, codecs.escape_encode, bytearray(b'spam'))
/external/python/cpython3/Misc/NEWS.d/
D3.6.0b2.rst541 Prevent codecs.escape_encode() from raising SystemError when an empty
D3.5.3rc1.rst851 Prevent codecs.escape_encode() from raising SystemError when an empty
D3.7.0a1.rst4539 Prevent codecs.escape_encode() from raising SystemError when an empty
/external/nanopb-c/generator/
Dnanopb_generator.py471 data = codecs.escape_encode(self.default.encode('utf-8'))[0]