From 47fb7ee8323c39b0302e8b0e7c52b3d37f3ec682 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Fri, 14 Jun 2024 21:00:51 -0700 Subject: [PATCH] Fix bytes_to_hex --- parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.py b/parse.py index 7aa3c95..9d306ae 100644 --- a/parse.py +++ b/parse.py @@ -21,7 +21,7 @@ def bytes_to_string(data): def bytes_to_hex(data, chunkify = False): output = data.hex().upper() - return " ".join((string[0+i:2+i] for i in range(0, len(string), 2))) if chunkify else output + return " ".join((output[0+i:2+i] for i in range(0, len(output), 2))) if chunkify else output def bytes_to_int(data): return int.from_bytes(data, 'little')