Kaydet (Commit) f2644160 authored tarafından Martin Panter's avatar Martin Panter

Issue #22413: Remove comment made out of date by Argument Clinic

üst 994815e1
...@@ -696,10 +696,8 @@ _io_StringIO___init___impl(stringio *self, PyObject *value, ...@@ -696,10 +696,8 @@ _io_StringIO___init___impl(stringio *self, PyObject *value,
char *newline = "\n"; char *newline = "\n";
Py_ssize_t value_len; Py_ssize_t value_len;
/* Parse the newline argument. This used to be done with the 'z' /* Parse the newline argument. We only want to allow unicode objects or
specifier, however this allowed any object with the buffer interface to None. */
be converted. Thus we have to parse it manually since we only want to
allow unicode objects or None. */
if (newline_obj == Py_None) { if (newline_obj == Py_None) {
newline = NULL; newline = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment