]> granicus.if.org Git - python/commitdiff
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
authorDevon R <Gorialis@users.noreply.github.com>
Tue, 10 Apr 2018 05:21:18 +0000 (14:21 +0900)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 10 Apr 2018 05:21:18 +0000 (08:21 +0300)
Modules/xxsubtype.c

index 8d0d6ae81493ad25ff5e2c9f3f58d681392b17fe..11242d73913812c566007ec1f3b76fe92f2e1738 100644 (file)
@@ -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) {