aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/script
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-19 13:22:50 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-19 13:22:50 +1300
commitbce387a5a0d52f682f479b11cb40ae0918e070c0 (patch)
tree4b96065dc5f7c7e904a731002a184ae890de4802 /mitmproxy/script
parent264a09e7789500673282075b2f5b9956268f0cea (diff)
downloadmitmproxy-bce387a5a0d52f682f479b11cb40ae0918e070c0.tar.gz
mitmproxy-bce387a5a0d52f682f479b11cb40ae0918e070c0.tar.bz2
mitmproxy-bce387a5a0d52f682f479b11cb40ae0918e070c0.zip
Kill flow.master - create master.Master
Also extract events into .events
Diffstat (limited to 'mitmproxy/script')
-rw-r--r--mitmproxy/script/concurrent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/script/concurrent.py b/mitmproxy/script/concurrent.py
index 11b2144e..dc72e5b7 100644
--- a/mitmproxy/script/concurrent.py
+++ b/mitmproxy/script/concurrent.py
@@ -3,7 +3,7 @@ This module provides a @concurrent decorator primitive to
offload computations from mitmproxy's main master thread.
"""
-from mitmproxy import controller
+from mitmproxy import events
from netlib import basethread
@@ -12,7 +12,7 @@ class ScriptThread(basethread.BaseThread):
def concurrent(fn):
- if fn.__name__ not in controller.Events - {"start", "configure", "tick"}:
+ if fn.__name__ not in events.Events - {"start", "configure", "tick"}:
raise NotImplementedError(
"Concurrent decorator not supported for '%s' method." % fn.__name__
)