summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-04-10 06:07:14 (GMT)
committerGitHub <noreply@github.com>2018-04-10 06:07:14 (GMT)
commit910d71b839755baa31258bcc083be9191563819e (patch)
treebaeb151352732b97a6bc2184b9e57b6e0fa5324a
parent83bb39907ec3828aec6d99bb9338283bd6b30ac2 (diff)
downloadcpython-910d71b839755baa31258bcc083be9191563819e.zip
cpython-910d71b839755baa31258bcc083be9191563819e.tar.gz
cpython-910d71b839755baa31258bcc083be9191563819e.tar.bz2
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
(cherry picked from commit f178028f37c9dafb72608b719eb03e5a70af4ff5) Co-authored-by: Devon R <Gorialis@users.noreply.github.com>
-rw-r--r--Modules/xxsubtype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/xxsubtype.c b/Modules/xxsubtype.c
index 8d0d6ae..11242d7 100644
--- a/Modules/xxsubtype.c
+++ b/Modules/xxsubtype.c
@@ -239,7 +239,7 @@ spam_bench(PyObject *self, PyObject *args)
int n = 1000;
time_t t0, t1;
- if (!PyArg_ParseTuple(args, "OS|i", &obj, &name, &n))
+ if (!PyArg_ParseTuple(args, "OU|i", &obj, &name, &n))
return NULL;
t0 = clock();
while (--n >= 0) {