From 5fd610687399fb1665060869232d9625ebfb4882 Mon Sep 17 00:00:00 2001 From: JP Viljoen Date: Mon, 5 Oct 2015 21:19:26 +0200 Subject: minor python3-related fix, add a missing import, and fix syntax in audioselector --- voctogui/lib/connection.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'voctogui/lib/connection.py') diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py index 433693d..b56a490 100644 --- a/voctogui/lib/connection.py +++ b/voctogui/lib/connection.py @@ -104,6 +104,8 @@ def on_loop(): def send(command): global conn, log + if isinstance(command, str): + command = command.encode('ascii') conn.send(command) def on(signal, cb): -- cgit v1.2.3