Fixes for Python 3.9
xcbgen: Use math.gcd()
for Python >= 3.5.
fractions.gcd()
has been deprecated since Python 3.5, and was finally dropped in Python 3.9. It is recommended to use math.gcd()
instead.
xcbgen: xml.etree.cElementTree
has been dropped in Python 3.9.
It can be replaced with xml.etree.ElementTree
safely.
Merge request reports
Activity
mentioned in merge request !9 (merged)
xcb-proto 1.14.1 has been released now: https://lists.x.org/archives/xorg-announce/2020-October/003061.html
BTW, it turns out the cElementTree change isn't actually required for Python 3.9, since they restored
xml.etree.cElementTree
shortly after this merge request landed: https://bugs.python.org/issue36543#msg371210(It's still good to have now, to use the current API and to prepare for the removal coming back in the future though.)