aboutsummaryrefslogtreecommitdiff
path: root/voctogui
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-11-10 15:42:42 +0100
committerMaZderMind <git@mazdermind.de>2015-11-10 15:42:42 +0100
commit57e05ef2451652c8e15546afb51b2aeaa1c95165 (patch)
tree22a649abccfc381c5fb8471a591c729ddcd1497a /voctogui
parent2fcbd40657f4aaceb2fcc98aeea920563a104b00 (diff)
support python32 in ui
Diffstat (limited to 'voctogui')
-rw-r--r--voctogui/lib/__init__.py0
-rw-r--r--voctogui/lib/connection.py4
-rw-r--r--voctogui/lib/toolbar/__init__.py0
3 files changed, 2 insertions, 2 deletions
diff --git a/voctogui/lib/__init__.py b/voctogui/lib/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/voctogui/lib/__init__.py
diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py
index 0df302a..6bece3d 100644
--- a/voctogui/lib/connection.py
+++ b/voctogui/lib/connection.py
@@ -67,11 +67,11 @@ def on_data(conn, _, leftovers, *args):
except UnicodeDecodeError as e:
continue
- except BlockingIOError as e:
+ except:
pass
data = "".join(leftovers)
- leftovers.clear()
+ del leftovers[:]
lines = data.split('\n')
for line in lines[:-1]:
diff --git a/voctogui/lib/toolbar/__init__.py b/voctogui/lib/toolbar/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/voctogui/lib/toolbar/__init__.py