diff --git a/tivars/types/tokenized.py b/tivars/types/tokenized.py index 7bd2bdd..ea103bb 100644 --- a/tivars/types/tokenized.py +++ b/tivars/types/tokenized.py @@ -385,13 +385,13 @@ def __format__(self, format_spec: str) -> str: try: match [*format_spec]: case sep, *width if width: - return self.data[2:].hex(sep, int(''.join(width))) + return self.data.hex(sep, int(''.join(width))) case sep, *_: - return self.data[2:].hex(sep) + return self.data.hex(sep) case _: - return self.data[2:].hex() + return self.data.hex() except TypeError: return super().__format__(format_spec)