Skip to content

Commit

Permalink
chore: added bytesarray cast to read string for ensuring encode works
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidiert committed Nov 8, 2023
1 parent 119ee91 commit dfc0eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/Python/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = python_bebop
version = 1.3.1
version = 1.3.2
author = Korbinian Habereder
author_email = [email protected]
description = bebop runtime bindings for Python
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Python/src/python_bebop/bebop.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def read_string(self):
return self._emptyString
string_data = self._buffer[self.index : self.index + length]
self.index += length
return string_data.decode('utf-8')
return bytearray(string_data).decode('utf-8')

def read_guid(self) -> UUID:
b = self._buffer[self.index : self.index + 16]
Expand Down

0 comments on commit dfc0eed

Please sign in to comment.