From 57e05ef2451652c8e15546afb51b2aeaa1c95165 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 10 Nov 2015 15:42:42 +0100 Subject: support python32 in ui --- voctogui/lib/__init__.py | 0 voctogui/lib/connection.py | 4 ++-- voctogui/lib/toolbar/__init__.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 voctogui/lib/__init__.py create mode 100644 voctogui/lib/toolbar/__init__.py (limited to 'voctogui') diff --git a/voctogui/lib/__init__.py b/voctogui/lib/__init__.py new file mode 100644 index 0000000..e69de29 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 -- cgit v1.2.3