Skip to content

Commit

Permalink
Added byteorder parameter for python 3.10 (and older) compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
attevaltojarvi committed Apr 12, 2024
1 parent 86fcb54 commit 7023b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typeid/typeid.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ def _convert_uuid_to_b32(uuid_instance: uuid6.UUID) -> str:

def _convert_b32_to_uuid(b32: str) -> uuid6.UUID:
uuid_bytes = bytes(base32.decode(b32))
uuid_int = int.from_bytes(uuid_bytes)
uuid_int = int.from_bytes(uuid_bytes, byteorder='big')
return uuid6.UUID(int=uuid_int, version=7)

0 comments on commit 7023b37

Please sign in to comment.