From bbb5080e982a6054bcd18568acd2ce5ae156a403 Mon Sep 17 00:00:00 2001 From: Sabin Dcoster Date: Sat, 3 Dec 2022 22:18:36 +0545 Subject: [PATCH] Add loop as a parameter in DumpMaster (#5790) * Add loop as a parameter in DumpMaster * [autofix.ci] apply automated fixes Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- mitmproxy/tools/dump.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mitmproxy/tools/dump.py b/mitmproxy/tools/dump.py index 6bb269ee3..1f6d62f4d 100644 --- a/mitmproxy/tools/dump.py +++ b/mitmproxy/tools/dump.py @@ -12,10 +12,11 @@ class DumpMaster(master.Master): def __init__( self, options: options.Options, + loop=None, with_termlog=True, with_dumper=True, ) -> None: - super().__init__(options) + super().__init__(options, event_loop=loop) if with_termlog: self.addons.add(termlog.TermLog()) self.addons.add(*addons.default_addons())