Skip to content

Commit

Permalink
fix int.from_bytes for python 3.10
Browse files Browse the repository at this point in the history
apparently, byteorder is required in 3.10 but not in 3.11
  • Loading branch information
charles-cooper committed Sep 5, 2023
1 parent d32a33c commit 1f79864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compiler/test_bytecode_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__():


def _parse_cbor_metadata(initcode):
metadata_ofst = int.from_bytes(initcode[-2:])
metadata_ofst = int.from_bytes(initcode[-2:], "big")
metadata = cbor2.loads(initcode[-metadata_ofst:-2])
return metadata

Expand Down

0 comments on commit 1f79864

Please sign in to comment.