Fixed error message for the "u#" format code.
diff --git a/Python/getargs.c b/Python/getargs.c
index 3f47b21..6902d13 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -968,7 +968,7 @@
Py_UNICODE **p = va_arg(*p_va, Py_UNICODE **);
if (*format == '#') {
- /* "s#" or "Z#" */
+ /* "u#" or "Z#" */
FETCH_SIZE;
if (c == 'Z' && arg == Py_None) {
@@ -983,10 +983,11 @@
STORE_SIZE(len);
}
else
- return converterr("str or None", arg, msgbuf, bufsize);
+ return converterr(c == 'Z' ? "str or None" : "str",
+ arg, msgbuf, bufsize);
format++;
} else {
- /* "s" or "Z" */
+ /* "u" or "Z" */
if (c == 'Z' && arg == Py_None)
*p = NULL;
else if (PyUnicode_Check(arg)) {