Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge branch 't/30590/src_sage_cpython_debugimpl_c__remove_python2_co…
Browse files Browse the repository at this point in the history
…de' into t/30184/support_python_3_9
  • Loading branch information
Matthias Koeppe committed Sep 18, 2020
2 parents 6cfab5b + 8f71b29 commit 9ab2b6a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/sage/cpython/debugimpl.c
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
#include <stdio.h>


/* Various feature checks depending on Python version */
#if PY_MAJOR_VERSION <= 2
#define HAVE_WEAKREFS(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_WEAKREFS)
#define HAVE_CLASS(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_CLASS)
#define HAVE_ITER(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_ITER)
#define HAVE_RICHCOMPARE(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_RICHCOMPARE)
#define HAVE_INPLACEOPS(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_INPLACEOPS)
#define HAVE_SEQUENCE_IN(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_SEQUENCE_IN)
#define HAVE_GETCHARBUFFER(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_GETCHARBUFFER)
#define HAVE_NEW_DIVISION(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_CLASS)
#define HAVE_INDEX(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_INDEX)
#define HAVE_NEWBUFFER(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_NEWBUFFER)
#else
#define HAVE_WEAKREFS(tp) (1)
#define HAVE_CLASS(tp) (1)
#define HAVE_ITER(tp) (1)
Expand All @@ -25,8 +12,6 @@
#define HAVE_INDEX(tp) (1)
#define HAVE_NEWBUFFER(tp) (1)
#define HAVE_FINALIZE(tp) (tp->tp_flags & Py_TPFLAGS_HAVE_FINALIZE)
#endif


static void print_object(void* pyobj)
{
Expand Down

0 comments on commit 9ab2b6a

Please sign in to comment.