Skip to content

Commit

Permalink
Change array.fromstring to array.frombytes for python 3.10 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissawer authored Aug 5, 2022
1 parent 66ea63e commit df3d07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py65emu/mmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def addBlock(self, start, length, readonly=False, value=None, valueOffset=0):

elif value is not None:
a = array.array('B')
a.fromstring(value.read())
a.frombytes(value.read())
for i in range(len(a)):
newBlock['memory'][i+valueOffset] = a[i]

Expand Down

0 comments on commit df3d07c

Please sign in to comment.