/brz/remove-bazaar

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

Viewing all changes in revision 7490.147.1.

  • Committer: Jelmer Vernooij
  • Author(s): Victor Stinner
  • Date: 2020-11-19 12:13:38 UTC
  • mto: (7490.40.118 work)
  • mto: This revision was merged to the branch mainline in revision 7532.
  • Revision ID: jelmer@jelmer.uk-20201119121338-cxm1x4fj5y3bmbau
Port to Python 3.10

Set static tuple reference count using Py_SET_REFCNT() rather than using
Py_REFCNT().

Define Py_SET_REFCNT() for Python 3.8 and older in python-compat.h.

On Python 3.10, Py_REFCNT() can no longer be used as an l-value to set an
object reference count: Py_SET_REFCNT() must be used for that.
See https://bugs.python.org/issue39573 for more details.

Fix issue #1904868.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: