summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-10-07 12:05:09 (GMT)
committerGitHub <noreply@github.com>2019-10-07 12:05:09 (GMT)
commit985ec986e864b670687b900a4d6ca977b4e9694d (patch)
treee7b8d6bdbde53435545c5280cefbcf26536806d7 /Doc/extending
parentf19b4d7474973236e63d3d8260bfb8072acfff9d (diff)
downloadcpython-985ec986e864b670687b900a4d6ca977b4e9694d.zip
cpython-985ec986e864b670687b900a4d6ca977b4e9694d.tar.gz
cpython-985ec986e864b670687b900a4d6ca977b4e9694d.tar.bz2
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
(cherry picked from commit 038503e08ac5b10601b95d5adc2c2cab7be10163) Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes_tutorial.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst
index 94ca747..b2c819c 100644
--- a/Doc/extending/newtypes_tutorial.rst
+++ b/Doc/extending/newtypes_tutorial.rst
@@ -182,7 +182,7 @@ set to *NULL*. ::
Py_INCREF(&CustomType);
if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) {
Py_DECREF(&CustomType);
- PY_DECREF(m);
+ Py_DECREF(m);
return NULL;
}