diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-05 12:26:24 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-05 12:26:26 +0200 |
commit | cce51d8a961cb5b6af21cd44b357defc39e1b008 (patch) | |
tree | 7315619675f5b7e402069c12160f9d2fc0bfa386 /parrot_zik/resource_manager.py | |
parent | 3f8786741afa17c30e23186c465fe870b2de9efe (diff) | |
download | pyParrotZikTCP-cce51d8a961cb5b6af21cd44b357defc39e1b008.tar.xz pyParrotZikTCP-cce51d8a961cb5b6af21cd44b357defc39e1b008.zip |
Make code compatible with python3 with python2 support
Warning: This is a preparation work for completly remove PyGTK. Because
PyGTK is python2 only, most part of the code didn't work. But a last
commands send to the headset is fonctional (This is why all this change).
Diffstat (limited to 'parrot_zik/resource_manager.py')
-rw-r--r-- | parrot_zik/resource_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parrot_zik/resource_manager.py b/parrot_zik/resource_manager.py index aa141cb..cd358e1 100644 --- a/parrot_zik/resource_manager.py +++ b/parrot_zik/resource_manager.py @@ -45,7 +45,7 @@ class ResourceManagerBase(object): def send_message(self, message): try: - self.sock.send(str(message)) + self.sock.send(bytes(message.request)) return self.get_answer(message) except bluetooth.btcommon.BluetoothError: raise DeviceDisconnected |