Home
last modified time | relevance | path

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

/third_party/python/Modules/_io/
Dstringio.c650 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()
Dtextio.c1354 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/
Dstringio.c.h252 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__()
Dtextio.c.h292 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()