[Python-checkins] cpython: Issue #21293: Remove unnecessary "capsule hack".

larry.hastings python-checkins at python.org
Mon Mar 2 17:45:05 CET 2015


https://hg.python.org/cpython/rev/b22755f8ab5f
changeset:   94831:b22755f8ab5f
parent:      94829:93244000efea
user:        Larry Hastings <larry at hastings.org>
date:        Mon Mar 02 08:44:51 2015 -0800
summary:
  Issue #21293: Remove unnecessary "capsule hack".

files:
  Objects/object.c |  3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/Objects/object.c b/Objects/object.c
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1825,9 +1825,6 @@
 
 #endif
 
-/* Hack to force loading of pycapsule.o */
-PyTypeObject *_PyCapsule_hack = &PyCapsule_Type;
-
 
 /* Hack to force loading of abstract.o */
 Py_ssize_t (*_Py_abstract_hack)(PyObject *) = PyObject_Size;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list