summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishna Oza <krishoza15sep@gmail.com>2019-10-07 11:57:45 (GMT)
committerXiang Zhang <angwerzx@126.com>2019-10-07 11:57:45 (GMT)
commit038503e08ac5b10601b95d5adc2c2cab7be10163 (patch)
treedbc4bb63b04aed01bb5fbd29c69a3213fce01b6a
parentb96145a6b5d89599ebccd2111d93f5670ddae840 (diff)
downloadcpython-038503e08ac5b10601b95d5adc2c2cab7be10163.zip
cpython-038503e08ac5b10601b95d5adc2c2cab7be10163.tar.gz
cpython-038503e08ac5b10601b95d5adc2c2cab7be10163.tar.bz2
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
-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;
}