Remove remaining Python3 explicit typing.
The original version of this code is built against Python3.5+ and uses explicit typing. As I think the pyModeS supports Python2, I thought it was preferable top remove these types.
This commit is contained in:
parent
32e6ee3904
commit
bfdb8221a0
@ -9,7 +9,7 @@ class BytesWrapper:
|
||||
|
||||
self._bytes = [b for b in bytes.fromhex(hex)]
|
||||
|
||||
def byte_count(self) -> int:
|
||||
def byte_count(self):
|
||||
return len(self._bytes) - 3
|
||||
|
||||
def get_bit(self, byte_index, bit_index):
|
||||
@ -30,7 +30,7 @@ class BytesWrapper:
|
||||
return (self._bytes[-3] << 16) | (self._bytes[-2] << 8) | self._bytes[-1]
|
||||
|
||||
|
||||
def crc(msg: str) -> int:
|
||||
def crc(msg):
|
||||
msgbin = BytesWrapper(msg)
|
||||
|
||||
for byte_index in range(msgbin.byte_count()):
|
||||
|
Loading…
Reference in New Issue
Block a user