Searched refs:lookup_error (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_codeccallbacks.py | 314 codecs.register_error("test." + err, codecs.lookup_error(err)) 665 surrogateescape_errors = codecs.lookup_error('surrogateescape') 709 surrogatepass_errors = codecs.lookup_error('surrogatepass') 809 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict")) 810 self.assertEqual(codecs.ignore_errors, codecs.lookup_error("ignore")) 811 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict")) 814 codecs.lookup_error("xmlcharrefreplace") 818 codecs.lookup_error("backslashreplace") 822 codecs.lookup_error("namereplace") 850 self.assertRaises(TypeError, codecs.lookup_error) [all …]
|
D | test_codecs.py | 837 self.assertTrue(codecs.lookup_error("surrogatepass")) 930 self.assertTrue(codecs.lookup_error("surrogatepass"))
|
/external/python/cpython2/Lib/test/ |
D | test_codeccallbacks.py | 314 codecs.register_error("test." + err, codecs.lookup_error(err)) 645 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict")) 646 self.assertEqual(codecs.ignore_errors, codecs.lookup_error("ignore")) 647 self.assertEqual(codecs.strict_errors, codecs.lookup_error("strict")) 650 codecs.lookup_error("xmlcharrefreplace") 654 codecs.lookup_error("backslashreplace") 682 self.assertRaises(TypeError, codecs.lookup_error) 687 self.assertRaises(LookupError, codecs.lookup_error, "test.unknown")
|
/external/python/cpython3/Lib/ |
D | codecs.py | 1085 strict_errors = lookup_error("strict") 1086 ignore_errors = lookup_error("ignore") 1087 replace_errors = lookup_error("replace") 1088 xmlcharrefreplace_errors = lookup_error("xmlcharrefreplace") 1089 backslashreplace_errors = lookup_error("backslashreplace") 1090 namereplace_errors = lookup_error("namereplace")
|
/external/python/cpython2/Lib/ |
D | codecs.py | 1088 strict_errors = lookup_error("strict") 1089 ignore_errors = lookup_error("ignore") 1090 replace_errors = lookup_error("replace") 1091 xmlcharrefreplace_errors = lookup_error("xmlcharrefreplace") 1092 backslashreplace_errors = lookup_error("backslashreplace")
|
/external/python/cpython2/Modules/ |
D | _codecsmodule.c | 1043 static PyObject *lookup_error(PyObject *self, PyObject *args) in lookup_error() function 1107 {"lookup_error", lookup_error, METH_VARARGS,
|
/external/python/cpython2/Doc/library/ |
D | codecs.rst | 200 .. function:: lookup_error(name)
|
/external/python/cpython3/Doc/library/ |
D | codecs.rst | 406 .. function:: lookup_error(name)
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.3.rst | 632 can access the error handler with :func:`codecs.lookup_error`. An equivalent C
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.3.rst | 632 can access the error handler with :func:`codecs.lookup_error`. An equivalent C
|