diff options
author | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-03-12 22:10:49 +0530 |
---|---|---|
committer | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-03-12 22:10:49 +0530 |
commit | 7f5fc0fdbdc7d12007cb3fc7114bf511928ec5f9 (patch) | |
tree | 1f1b18575ee63c295abd93286b7859a06cb01aee | |
parent | 74f2a28e416ceb75c07baf8202b959efcbef1b37 (diff) | |
download | mitmproxy-7f5fc0fdbdc7d12007cb3fc7114bf511928ec5f9.tar.gz mitmproxy-7f5fc0fdbdc7d12007cb3fc7114bf511928ec5f9.tar.bz2 mitmproxy-7f5fc0fdbdc7d12007cb3fc7114bf511928ec5f9.zip |
Removed ReplaceBase
-rw-r--r-- | mitmproxy/addons/replace.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mitmproxy/addons/replace.py b/mitmproxy/addons/replace.py index 012c42bd..f66f60c3 100644 --- a/mitmproxy/addons/replace.py +++ b/mitmproxy/addons/replace.py @@ -43,9 +43,10 @@ def parse_hook(s): return patt, a, b -class _ReplaceBase: +class Replace: def __init__(self): self.lst = [] + self.optionName = "replacements" def configure(self, options, updated): """ @@ -90,10 +91,6 @@ class _ReplaceBase: if not flow.reply.has_message: self.execute(flow) - -class Replace(_ReplaceBase): - optionName = "replacements" - def replace(self, obj, rex, s): if s.startswith("@"): s = s.replace("@", "") |