1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## ICUtzinfo-not-heap-type.dpatch by Jakub Wilk <jwilk@debian.org>
4
## DP: Revert upstream change to make ICUtzinfo a heap type.
5
## DP: See https://bugzilla.osafoundation.org/show_bug.cgi?id=13038
7
diff --git a/tzinfo.cpp b/tzinfo.cpp
14
- Py_TPFLAGS_HEAPTYPE |
15
Py_TPFLAGS_BASETYPE), /* tp_flags */
20
Py_XDECREF((PyObject *) _default);
21
_default = (t_tzinfo *) tzinfo;
22
- PyObject_SetAttrString((PyObject *)&TZInfoType, "default", tzinfo);
23
+ PyDict_SetItemString(TZInfoType.tp_dict, "default", tzinfo);