aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/controller.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-09 13:55:55 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-09 13:55:55 +1200
commit22192d1a46a45b3824290ff4095539fa8b6be1fa (patch)
treeca395bf8a5b17ac12534a89bf008c64a627a3425 /libmproxy/controller.py
parentb7b357528c3d3867f1a29400de3a11f2d976e60d (diff)
downloadmitmproxy-22192d1a46a45b3824290ff4095539fa8b6be1fa.tar.gz
mitmproxy-22192d1a46a45b3824290ff4095539fa8b6be1fa.tar.bz2
mitmproxy-22192d1a46a45b3824290ff4095539fa8b6be1fa.zip
Nose mopup: docs, no cover pragmas, a few missing path specs.
Diffstat (limited to 'libmproxy/controller.py')
-rw-r--r--libmproxy/controller.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/libmproxy/controller.py b/libmproxy/controller.py
index 174a3c6e..f38d1edb 100644
--- a/libmproxy/controller.py
+++ b/libmproxy/controller.py
@@ -17,8 +17,6 @@ import Queue, threading
should_exit = False
-#begin nocover
-
class Msg:
def __init__(self):
self.q = Queue.Queue()
@@ -36,13 +34,13 @@ class Msg:
self.acked = False
try:
masterq.put(self, timeout=3)
- while not should_exit:
+ while not should_exit: # pragma: no cover
try:
g = self.q.get(timeout=0.5)
except Queue.Empty:
continue
return g
- except (Queue.Empty, Queue.Full):
+ except (Queue.Empty, Queue.Full): # pragma: no cover
return None
@@ -88,7 +86,7 @@ class Master:
self.tick(self.masterq)
self.shutdown()
- def handle(self, msg):
+ def handle(self, msg): # pragma: no cover
c = "handle_" + msg.__class__.__name__.lower()
m = getattr(self, c, None)
if m: