/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/python-compat.h

Port to Python 3.10: Set static tuple reference count using Py_SET_REFCNT() rather than using Py_REFCNT().

Merged from https://code.launchpad.net/~jelmer/brz/python3.10/+merge/394195

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
#define strtoull _strtoui64
120
120
#endif
121
121
 
 
122
#if PY_VERSION_HEX < 0x030900A4
 
123
#  define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)
 
124
#endif
 
125
 
122
126
#endif /* _BZR_PYTHON_COMPAT_H */