aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/script
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-09 11:56:38 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-09 16:08:36 +0100
commit0299bb5b2e4870363ba0c402c6cf15722ca0ee0f (patch)
treef3f893401505dd57931497645e4015a2e0ec7aae /mitmproxy/script
parent5a3976c43e480b3926691e9f394b8200ca7613f0 (diff)
downloadmitmproxy-0299bb5b2e4870363ba0c402c6cf15722ca0ee0f.tar.gz
mitmproxy-0299bb5b2e4870363ba0c402c6cf15722ca0ee0f.tar.bz2
mitmproxy-0299bb5b2e4870363ba0c402c6cf15722ca0ee0f.zip
eventsequence: coverage++
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 2fd7ad8d..366929a5 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 events
+from mitmproxy import eventsequence
from mitmproxy.types import basethread
@@ -12,7 +12,7 @@ class ScriptThread(basethread.BaseThread):
def concurrent(fn):
- if fn.__name__ not in events.Events - {"start", "configure", "tick"}:
+ if fn.__name__ not in eventsequence.Events - {"start", "configure", "tick"}:
raise NotImplementedError(
"Concurrent decorator not supported for '%s' method." % fn.__name__
)