Skip to content

Commit

Permalink
Fix copy-paste error in _nrt_python_helper.h
Browse files Browse the repository at this point in the history
  • Loading branch information
diptorupd committed Feb 14, 2023
1 parent 40ea4d3 commit 19e9b85
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions numba_dpex/core/runtime/_nrt_python_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ PyObject *MemInfo_get_refcount(MemInfoObject *self, void *closure);
PyObject *MemInfo_get_external_allocator(MemInfoObject *self, void *closure);
PyObject *MemInfo_get_parent(MemInfoObject *self, void *closure);

#if (PY_MAJOR_VERSION == 3) && (PY_MINOR_VERSION == 8)
/* This is Python 3.8 only.
* See: https://github.com/python/cpython/blob/3.8/Include/cpython/object.h
* there's a tp_print preserved for backwards compatibility. xref:
* https://github.com/python/cpython/blob/d917cfe4051d45b2b755c726c096ecfcc4869ceb/Include/cpython/object.h#L260
*/
0, /* tp_print */
#endif

/* WARNING: Do not remove this, only modify it! It is a version guard to
* act as a reminder to update this struct on Python version update! */
#if (PY_MAJOR_VERSION == 3)
Expand Down

0 comments on commit 19e9b85

Please sign in to comment.