From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 10 Apr 2018 06:07:14 +0000 (-0700) Subject: bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439) X-Git-Tag: v3.6.6rc1~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=910d71b839755baa31258bcc083be9191563819e;p=python bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439) (cherry picked from commit f178028f37c9dafb72608b719eb03e5a70af4ff5) Co-authored-by: Devon R --- diff --git a/Modules/xxsubtype.c b/Modules/xxsubtype.c index 8d0d6ae814..11242d7391 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) {