mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 22:48:54 +08:00
Removed ReplaceBase
This commit is contained in:
@@ -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("@", "")
|
||||
|
||||
Reference in New Issue
Block a user