]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2019 12:04:09 +0000 (05:04 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2019 12:04:09 +0000 (05:04 -0700)
(cherry picked from commit 038503e08ac5b10601b95d5adc2c2cab7be10163)

Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
Doc/extending/newtypes_tutorial.rst

index e6448e46411bfa5c60b94ebb649aa8a6559f5a52..50be28fbcba2825a7cf6fee988681f7a5bc1e652 100644 (file)
@@ -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;
    }