Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
array.fromstring was removed in favour of frombytes in Python 3.9
  • Loading branch information
hugovk committed Jan 23, 2020
commit 06dec7a7042aa45e3bfb77a66c639c9bad2a6e3e
2 changes: 1 addition & 1 deletion setupext/build_thunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def output(fout, l):
print(" ", file=fout, end="")
line = []
buffer = array.array("B")
buffer.fromstring(l)
buffer.frombytes(l)
for i in buffer:
line.append("(jbyte)0x%02X" % i)
print(",".join(line), file=fout, end="")
Expand Down