Searched refs:newline_obj (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Modules/_io/ |
D | stringio.c | 650 PyObject *newline_obj) in _io_StringIO___init___impl() argument 658 if (newline_obj == Py_None) { in _io_StringIO___init___impl() 661 else if (newline_obj) { in _io_StringIO___init___impl() 662 if (!PyUnicode_Check(newline_obj)) { in _io_StringIO___init___impl() 665 Py_TYPE(newline_obj)->tp_name); in _io_StringIO___init___impl() 668 newline = PyUnicode_AsUTF8(newline_obj); in _io_StringIO___init___impl() 678 "illegal newline value: %R", newline_obj); in _io_StringIO___init___impl() 695 assert((newline != NULL && newline_obj != Py_None) || in _io_StringIO___init___impl() 696 (newline == NULL && newline_obj == Py_None)); in _io_StringIO___init___impl()
|
D | textio.c | 1354 PyObject *errors, PyObject *newline_obj, in _io_TextIOWrapper_reconfigure_impl() argument 1365 if (encoding != Py_None || errors != Py_None || newline_obj != NULL) { in _io_TextIOWrapper_reconfigure_impl() 1372 if (newline_obj != NULL && newline_obj != Py_None) { in _io_TextIOWrapper_reconfigure_impl() 1373 newline = PyUnicode_AsUTF8(newline_obj); in _io_TextIOWrapper_reconfigure_impl() 1394 if (newline_obj != NULL && set_newline(self, newline) < 0) { in _io_TextIOWrapper_reconfigure_impl() 1399 self, encoding, errors, newline_obj != NULL) < 0) { in _io_TextIOWrapper_reconfigure_impl()
|
/third_party/python/Modules/_io/clinic/ |
D | stringio.c.h | 252 PyObject *newline_obj); 265 PyObject *newline_obj = NULL; in _io_StringIO___init__() local 280 newline_obj = fastargs[1]; in _io_StringIO___init__() 282 return_value = _io_StringIO___init___impl((stringio *)self, value, newline_obj); in _io_StringIO___init__()
|
D | textio.c.h | 292 PyObject *errors, PyObject *newline_obj, 306 PyObject *newline_obj = NULL; in _io_TextIOWrapper_reconfigure() local 330 newline_obj = args[2]; in _io_TextIOWrapper_reconfigure() 343 …return_value = _io_TextIOWrapper_reconfigure_impl(self, encoding, errors, newline_obj, line_buffer… in _io_TextIOWrapper_reconfigure()
|