[Python-checkins] cpython: convertsimple(): "str without bytes" => "str without characters"
victor.stinner
python-checkins at python.org
Thu Oct 13 23:29:54 CEST 2011
http://hg.python.org/cpython/rev/9685f893fffe
changeset: 72915:9685f893fffe
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu Oct 13 23:25:03 2011 +0200
summary:
convertsimple(): "str without bytes" => "str without characters"
files:
Python/getargs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Python/getargs.c b/Python/getargs.c
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -961,8 +961,8 @@
arg, msgbuf, bufsize);
if (*p != NULL && sarg != NULL && (Py_ssize_t) strlen(*p) != len)
return converterr(
- c == 'z' ? "str without null bytes or None"
- : "str without null bytes",
+ c == 'z' ? "str without null characters or None"
+ : "str without null characters",
arg, msgbuf, bufsize);
}
break;
@@ -1002,7 +1002,7 @@
RETURN_ERR_OCCURRED;
if (Py_UNICODE_strlen(*p) != len)
return converterr(
- "str without null character or None",
+ "str without null characters or None",
arg, msgbuf, bufsize);
} else
return converterr(c == 'Z' ? "str or None" : "str",
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list