void-packages/srcpkgs/renderdoc/patches/python-3.13.patch
2024-12-14 07:43:24 -05:00

11 lines
524 B
Diff

--- a/qrenderdoc/Code/pyrenderdoc/renderdoc.i
+++ b/qrenderdoc/Code/pyrenderdoc/renderdoc.i
@@ -469,7 +469,7 @@
// for basic types, return the repr directly
if(obj == (PyObject *)&_Py_TrueStruct ||
obj == (PyObject *)&_Py_FalseStruct ||
- PyObject_IsInstance(obj, (PyObject*)&_PyNone_Type) ||
+ obj == (PyObject *)Py_None ||
PyObject_IsInstance(obj, (PyObject*)&PyFloat_Type) ||
PyObject_IsInstance(obj, (PyObject*)&PyLong_Type) ||
PyObject_IsInstance(obj, (PyObject*)&PyBytes_Type) ||