diff options
Diffstat (limited to 'src/jinja2/debug.py')
-rw-r--r-- | src/jinja2/debug.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/jinja2/debug.py b/src/jinja2/debug.py index d2c5a06..5d8aec3 100644 --- a/src/jinja2/debug.py +++ b/src/jinja2/debug.py @@ -245,10 +245,7 @@ else: class _CTraceback(ctypes.Structure): _fields_ = [ # Extra PyObject slots when compiled with Py_TRACE_REFS. - ( - "PyObject_HEAD", - ctypes.c_byte * (32 if hasattr(sys, "getobjects") else 16), - ), + ("PyObject_HEAD", ctypes.c_byte * object().__sizeof__()), # Only care about tb_next as an object, not a traceback. ("tb_next", ctypes.py_object), ] |