[Python-checkins] bpo-40077: Fix typo in simplequeue_get_state_by_type() (GH-23975)

miss-islington webhook-mailer at python.org
Mon Dec 28 12:47:36 EST 2020


https://github.com/python/cpython/commit/bf108bb21e1d75e30bd17141cc531dd08a5e5d0c
commit: bf108bb21e1d75e30bd17141cc531dd08a5e5d0c
branch: master
author: Erlend Egeberg Aasland <erlend.aasland at innova.no>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-12-28T09:47:16-08:00
summary:

bpo-40077: Fix typo in simplequeue_get_state_by_type() (GH-23975)



The typo did no damage, but it looks suspicious and confusing.
Introduced by GH-23136.

Skip news.

Automerge-Triggered-By: GH:pitrou

files:
M Modules/_queuemodule.c

diff --git a/Modules/_queuemodule.c b/Modules/_queuemodule.c
index a2b6ac87a72eb..7a52617ade5b0 100644
--- a/Modules/_queuemodule.c
+++ b/Modules/_queuemodule.c
@@ -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 {



More information about the Python-checkins mailing list