summaryrefslogtreecommitdiff
path: root/dev-python/ruamel-yaml-clib/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-09-10 04:21:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-09-10 04:21:55 +0100
commit677b7ba5c317778df2ad7e70df94b9b7eec4adbc (patch)
tree6c418a1546fff5becab5d8b9ed6803323e7f316e /dev-python/ruamel-yaml-clib/files
parentfbda87924e6faa7a1919f1a2b4182490bde5ec5c (diff)
gentoo resync : 10.09.2021
Diffstat (limited to 'dev-python/ruamel-yaml-clib/files')
-rw-r--r--dev-python/ruamel-yaml-clib/files/ruamel-yaml-clib-0.2.2-python3_10.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/dev-python/ruamel-yaml-clib/files/ruamel-yaml-clib-0.2.2-python3_10.patch b/dev-python/ruamel-yaml-clib/files/ruamel-yaml-clib-0.2.2-python3_10.patch
deleted file mode 100644
index 6a34420de79f..000000000000
--- a/dev-python/ruamel-yaml-clib/files/ruamel-yaml-clib-0.2.2-python3_10.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-Since Python 3.10, Py_REFCNT() can no longer be used as an l-value. See
-
-https://docs.python.org/3.10/whatsnew/3.10.html#id2
-
-for details.
-
---- a/_ruamel_yaml.c
-+++ b/_ruamel_yaml.c
-@@ -23877,9 +23877,9 @@
- {
- PyObject *etype, *eval, *etb;
- PyErr_Fetch(&etype, &eval, &etb);
-- ++Py_REFCNT(o);
-+ Py_SET_REFCNT(o, Py_REFCNT(o) + 1);
- __pyx_pw_12_ruamel_yaml_7CParser_3__dealloc__(o);
-- --Py_REFCNT(o);
-+ Py_SET_REFCNT(o, Py_REFCNT(o) - 1);
- PyErr_Restore(etype, eval, etb);
- }
- Py_CLEAR(p->stream);
-@@ -24050,9 +24050,9 @@
- {
- PyObject *etype, *eval, *etb;
- PyErr_Fetch(&etype, &eval, &etb);
-- ++Py_REFCNT(o);
-+ Py_SET_REFCNT(o, Py_REFCNT(o) + 1);
- __pyx_pw_12_ruamel_yaml_8CEmitter_3__dealloc__(o);
-- --Py_REFCNT(o);
-+ Py_SET_REFCNT(o, Py_REFCNT(o) - 1);
- PyErr_Restore(etype, eval, etb);
- }
- Py_CLEAR(p->stream);
---- a/_ruamel_yaml.h
-+++ b/_ruamel_yaml.h
-@@ -12,6 +12,10 @@
- #define PyString_GET_SIZE PyBytes_GET_SIZE
- #define PyString_FromStringAndSize PyBytes_FromStringAndSize
-
-+#if PY_VERSION_HEX < 0x030900A4
-+# define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)
-+#endif
-+
- #endif
-
- #ifdef _MSC_VER /* MS Visual C++ 6.0 */