aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2015-10-11 17:27:10 +0200
committerMaZderMind <peter@mazdermind.de>2015-10-11 17:27:10 +0200
commita060f75c3a01e1f4aa0b5f79b5c74bfb1ec3da76 (patch)
tree0ca55f7e149506183f1ec49c5ead4c4c0e17c3d4
parent103064675ee639f3083bde42d233c29fcecdb183 (diff)
support python32
-rw-r--r--voctocore/lib/controlserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/voctocore/lib/controlserver.py b/voctocore/lib/controlserver.py
index 22dd305..48fff65 100644
--- a/voctocore/lib/controlserver.py
+++ b/voctocore/lib/controlserver.py
@@ -41,11 +41,11 @@ class ControlServer(TCPMultiConnection):
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]: