summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-06-05 13:38:36 (GMT)
committerGitHub <noreply@github.com>2023-06-05 13:38:36 (GMT)
commit058b96053563bb5c413dc081eb8cc0916516525c (patch)
tree802cbc2b26ef0404f49eafb0f3de9f1800a3289d /Objects
parentcdfb201bfa35b7c50de5099c6d9078c806851d98 (diff)
downloadcpython-058b96053563bb5c413dc081eb8cc0916516525c.zip
cpython-058b96053563bb5c413dc081eb8cc0916516525c.tar.gz
cpython-058b96053563bb5c413dc081eb8cc0916516525c.tar.bz2
gh-103906: Remove immortal refcounting in compile/marshal.c (gh-103922)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/sliceobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c
index e6776ac..5a33977 100644
--- a/Objects/sliceobject.c
+++ b/Objects/sliceobject.c
@@ -26,7 +26,7 @@ ellipsis_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyErr_SetString(PyExc_TypeError, "EllipsisType takes no arguments");
return NULL;
}
- return Py_NewRef(Py_Ellipsis);
+ return Py_Ellipsis;
}
static void