diff options
| author | morefigs <morefigs@gmail.com> | 2019-01-22 16:33:18 +1100 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2019-01-22 16:33:18 +1100 |
| commit | e0ce826bf865a1f92a836e2c9ac9ab8d83be79aa (patch) | |
| tree | 5350bc237d9fd2242fa9e87869b6c95023afa887 | |
| parent | b5431978c51107ba9e6475fc489fbd6dc7110332 (diff) | |
| download | pymba-e0ce826bf865a1f92a836e2c9ac9ab8d83be79aa.tar.gz pymba-e0ce826bf865a1f92a836e2c9ac9ab8d83be79aa.zip | |
encode and decode id internally
| -rw-r--r-- | pymba/vimba_interface.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pymba/vimba_interface.py b/pymba/vimba_interface.py index b2b8890..647aa44 100644 --- a/pymba/vimba_interface.py +++ b/pymba/vimba_interface.py @@ -12,12 +12,12 @@ class VimbaInterface(VimbaObject): """ def __init__(self, id_string: str): - self._id_string = id_string + self._id_string = id_string.encode() super().__init__() @property def id_string(self): - return self._id_string + return self._id_string.decode() def open(self): """ |
