This commit is contained in:
Diederik Loerakker 2019-10-28 08:29:01 +01:00 committed by GitHub
parent 9582814c62
commit 257fcd9c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -569,7 +569,7 @@ def int_to_bytes(n: uint64, length: uint64) -> bytes:
```python ```python
def bytes_to_int(data: bytes) -> uint64: def bytes_to_int(data: bytes) -> uint64:
""" """
Return the integer deserialization of ``data`` intepretted as ``ENDIANNESS``-endian. Return the integer deserialization of ``data`` intepreted as ``ENDIANNESS``-endian.
""" """
return int.from_bytes(data, ENDIANNESS) return int.from_bytes(data, ENDIANNESS)
``` ```