diff options
-rw-r--r-- | scripts/build/msgfmt.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |