[Python-checkins] cpython (3.5): Issue #22413: Remove comment made out of date by Argument Clinic

martin.panter python-checkins at python.org
Sat Oct 10 06:31:26 EDT 2015


https://hg.python.org/cpython/rev/46df76819b79
changeset: 98640:46df76819b79
branch: 3.5
user: Martin Panter <vadmium+py at gmail.com>
date: Sat Oct 10 10:17:57 2015 +0000
summary:
 Issue #22413: Remove comment made out of date by Argument Clinic
files:
 Modules/_io/stringio.c | 6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c
--- a/Modules/_io/stringio.c
+++ b/Modules/_io/stringio.c
@@ -696,10 +696,8 @@
 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;
 }
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /