summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-13 23:25:03 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-13 23:25:03 +0200
commita337ec1d9c574b5a5d2bca01ceb43cdead37f799 (patch)
tree4d1902269e31eabf41982577ed0a55164ae1757b /Python
parent007fd2f34c24218335a195730fa06053a631bd14 (diff)
downloadcpython-a337ec1d9c574b5a5d2bca01ceb43cdead37f799.tar.gz
convertsimple(): "str without bytes" => "str without characters"
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index f2cc9f4509..77f27bebc9 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -961,8 +961,8 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
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 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
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",