]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40077: Fix typo in simplequeue_get_state_by_type() (GH-23975)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Mon, 28 Dec 2020 17:47:16 +0000 (18:47 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Dec 2020 17:47:16 +0000 (09:47 -0800)
The typo did no damage, but it looks suspicious and confusing.
Introduced by GH-23136.

Skip news.

Automerge-Triggered-By: GH:pitrou
Modules/_queuemodule.c

index a2b6ac87a72ebfea252d549d0a3c726f5162771d..7a52617ade5b09ec3a38d07dba91234bc536dc0d 100644 (file)
@@ -15,7 +15,7 @@ simplequeue_get_state(PyObject *module)
     return state;
 }
 static struct PyModuleDef queuemodule;
-#define simplequeue_get_state_by_type(tp) \
+#define simplequeue_get_state_by_type(type) \
     (simplequeue_get_state(_PyType_GetModuleByDef(type, &queuemodule)))
 
 typedef struct {