Skip to content
Permalink
Browse files

array.fromstring was removed in favour of frombytes in Python 3.9

  • Loading branch information
hugovk committed Jan 23, 2020
1 parent 6728ea2 commit 06dec7a7042aa45e3bfb77a66c639c9bad2a6e3e
Showing with 1 addition and 1 deletion.
  1. +1 −1 setupext/build_thunk.py
@@ -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="")

0 comments on commit 06dec7a

Please sign in to comment.
You can’t perform that action at this time.