From 19aec7e9c34cb8ecfb01a691d735da8574c99519 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 6 Apr 2020 04:21:05 +1000 Subject: (nw) hopefully work around deprecation warning - removing something in 3.9 when the replacement was only added in 3.2 is typical of Python's disregard for stability --- scripts/build/msgfmt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/build/msgfmt.py') diff --git a/scripts/build/msgfmt.py b/scripts/build/msgfmt.py index deb02ae32b2..4147d5becb9 100644 --- a/scripts/build/msgfmt.py +++ b/scripts/build/msgfmt.py @@ -112,7 +112,8 @@ def generate(): 7*4, # start of key index 7*4+len(keys)*8, # start of value index 0, 0) # size and offset of hash table - output += array.array("i", offsets).tostring() + offsdata = array.array("i", offsets) + output += offsdata.tobytes() if hasattr(offsdata, "tobytes") else offsdata.tostring() output += ids output += strs return output -- cgit v1.2.3-70-g09d2