mirror of
https://github.com/svpcom/wfb-ng.git
synced 2025-02-20 23:43:49 -04:00
Fix python3 compatibility issue
This commit is contained in:
parent
4019282285
commit
455fcf0cfd
@ -38,7 +38,10 @@ class x25crc(object):
|
||||
accum = self.crc
|
||||
import array
|
||||
bytes = array.array('B')
|
||||
bytes.fromstring(buf)
|
||||
if not (sys.version_info.major == 3 and sys.version_info.minor >= 2):
|
||||
bytes.fromstring(buf)
|
||||
else:
|
||||
bytes.frombytes(buf)
|
||||
self.accumulate(bytes)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user