mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
(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
This commit is contained in:
parent
c3da4c5b4b
commit
19aec7e9c3
@ -112,7 +112,8 @@ def generate():
|
|||||||
7*4, # start of key index
|
7*4, # start of key index
|
||||||
7*4+len(keys)*8, # start of value index
|
7*4+len(keys)*8, # start of value index
|
||||||
0, 0) # size and offset of hash table
|
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 += ids
|
||||||
output += strs
|
output += strs
|
||||||
return output
|
return output
|
||||||
|
Loading…
Reference in New Issue
Block a user