summaryrefslogtreecommitdiff
path: root/Doc/extending
diff options
context:
space:
mode:
authorKrishna Oza <krishoza15sep@gmail.com>2019-10-07 17:27:45 +0530
committerXiang Zhang <angwerzx@126.com>2019-10-07 19:57:45 +0800
commit038503e08ac5b10601b95d5adc2c2cab7be10163 (patch)
treedbc4bb63b04aed01bb5fbd29c69a3213fce01b6a /Doc/extending
parentb96145a6b5d89599ebccd2111d93f5670ddae840 (diff)
downloadcpython-git-038503e08ac5b10601b95d5adc2c2cab7be10163.tar.gz
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
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 94ca747c7a..b2c819c858 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;
}