diff --git a/pylgbst/constants.py b/pylgbst/constants.py index 0ba66c3..1fd5f7d 100644 --- a/pylgbst/constants.py +++ b/pylgbst/constants.py @@ -10,14 +10,18 @@ else: queue = queue # just to use it -def str2hex(data): # TODO: eliminate it +def str2hex(data): return binascii.hexlify(data).decode("utf8") -def get_byte(seq, index): +def usbyte(seq, index): return struct.unpack("