summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-10-10 10:17:57 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-10-10 10:17:57 (GMT)
commitf26441609310c12826fe4b5bc896aafafa268763 (patch)
treef757aebc36b392bc3ee041dc15255f0e9a06e264 /Modules
parent994815e1d713428600386e9909b935e4dfe7c82d (diff)
downloadcpython-f26441609310c12826fe4b5bc896aafafa268763.zip
cpython-f26441609310c12826fe4b5bc896aafafa268763.tar.gz
cpython-f26441609310c12826fe4b5bc896aafafa268763.tar.bz2
Issue #22413: Remove comment made out of date by Argument Clinic
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_io/stringio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c
index 21c2b19..73018a5 100644
--- a/Modules/_io/stringio.c
+++ b/Modules/_io/stringio.c
@@ -696,10 +696,8 @@ _io_StringIO___init___impl(stringio *self, PyObject *value,
char *newline = "\n";
Py_ssize_t value_len;
- /* Parse the newline argument. This used to be done with the 'z'
- specifier, however this allowed any object with the buffer interface to
- be converted. Thus we have to parse it manually since we only want to
- allow unicode objects or None. */
+ /* Parse the newline argument. We only want to allow unicode objects or
+ None. */
if (newline_obj == Py_None) {
newline = NULL;
}