i18n/msgfmt.py array.array().tostring() fails on Python 3.9
Created originally on Bitbucket by kiilerix (Mads Kiilerich)
$ grep tostring `hg mani`
i18n/msgfmt.py: output += array.array("i", offsets).tostring()
$ python3.8 -c 'import array; print(array.array("i", [7]).tostring())'
b'\x07\x00\x00\x00'
$ python3.9 -c 'import array; print(array.array("i", [7]).tostring())'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'array.array' object has no attribute 'tostring'
Seen on https://kojipkgs.fedoraproject.org//work/tasks/5285/45385285/build.log - I don’t know yet if other problems come next.