]> granicus.if.org Git - python/commitdiff
Issue #22146: Fix typo in __build_class__ error message
authorZachary Ware <zachary.ware@gmail.com>
Tue, 5 Aug 2014 19:01:10 +0000 (14:01 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Tue, 5 Aug 2014 19:01:10 +0000 (14:01 -0500)
Python/bltinmodule.c

index a81af65658206a17c22a07ff98db37c4143d64b2..d905ba2d949b96ea133c50ba49d9f9a8047daaa2 100644 (file)
@@ -69,7 +69,7 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
     func = PyTuple_GET_ITEM(args, 0); /* Better be callable */
     if (!PyFunction_Check(func)) {
         PyErr_SetString(PyExc_TypeError,
-                        "__build__class__: func must be a function");
+                        "__build_class__: func must be a function");
         return NULL;
     }
     name = PyTuple_GET_ITEM(args, 1);