Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d663d0

Browse files
author
Victor Stinner
committed
convertsimple(): "str without bytes" => "str without characters"
1 parent d1a9cc2 commit 9d663d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/getargs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,8 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
961961
arg, msgbuf, bufsize);
962962
if (*p != NULL && sarg != NULL && (Py_ssize_t) strlen(*p) != len)
963963
return converterr(
964-
c == 'z' ? "str without null bytes or None"
965-
: "str without null bytes",
964+
c == 'z' ? "str without null characters or None"
965+
: "str without null characters",
966966
arg, msgbuf, bufsize);
967967
}
968968
break;
@@ -1002,7 +1002,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
10021002
RETURN_ERR_OCCURRED;
10031003
if (Py_UNICODE_strlen(*p) != len)
10041004
return converterr(
1005-
"str without null character or None",
1005+
"str without null characters or None",
10061006
arg, msgbuf, bufsize);
10071007
} else
10081008
return converterr(c == 'Z' ? "str or None" : "str",

0 commit comments

Comments
 (0)