Skip to content

Commit

Permalink
Use minimal munching for name fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed May 27, 2024
1 parent 1c7e1ae commit fd8c04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tivars/tokenizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get(cls, data: bytes, **kwargs) -> _T:

@classmethod
def set(cls, value: _T, **kwargs) -> bytes:
return encode(value)[0].rstrip(b'\x00')
return encode(value, mode="string")[0].rstrip(b'\x00')


__all__ = ["decode", "encode", "TokenizedString",
Expand Down

0 comments on commit fd8c04d

Please sign in to comment.