diff options
author | Henrique <typoon@gmail.com> | 2019-11-23 16:36:52 -0500 |
---|---|---|
committer | Henrique <typoon@gmail.com> | 2019-11-23 16:36:52 -0500 |
commit | 1d43abcb289823107bd305ed2485af0c3986a270 (patch) | |
tree | e67b154d0dcb945dfc55ab6f2224575f7afafb35 /mitmproxy/tools | |
parent | 6d67286bd1e68b12fb1151cc6790e3a4bdadbe57 (diff) | |
download | mitmproxy-1d43abcb289823107bd305ed2485af0c3986a270.tar.gz mitmproxy-1d43abcb289823107bd305ed2485af0c3986a270.tar.bz2 mitmproxy-1d43abcb289823107bd305ed2485af0c3986a270.zip |
Making the linter happy
Diffstat (limited to 'mitmproxy/tools')
-rw-r--r-- | mitmproxy/tools/_main.py | 3 | ||||
-rw-r--r-- | mitmproxy/tools/console/commander/commander.py | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/mitmproxy/tools/_main.py b/mitmproxy/tools/_main.py index 581498ff..3e6933b9 100644 --- a/mitmproxy/tools/_main.py +++ b/mitmproxy/tools/_main.py @@ -77,7 +77,6 @@ def run( arg_check.check() sys.exit(1) - try: opts.set(*args.setoptions, defer=True) opts.confdir = os.path.expanduser(opts.confdir) @@ -95,9 +94,7 @@ def run( print("-R is used for specifying replacements.\n" "To use mitmproxy in reverse mode please use --mode reverse:SPEC instead") - try: - optmanager.load_paths( opts, os.path.join(opts.confdir, "config.yaml"), diff --git a/mitmproxy/tools/console/commander/commander.py b/mitmproxy/tools/console/commander/commander.py index c59c7f83..99533cfa 100644 --- a/mitmproxy/tools/console/commander/commander.py +++ b/mitmproxy/tools/console/commander/commander.py @@ -1,8 +1,5 @@ import abc -import collections -import copy import typing -import os import urwid from urwid.text_layout import calc_coords @@ -14,6 +11,7 @@ import mitmproxy.types from mitmproxy import command_lexer + class Completer: @abc.abstractmethod def cycle(self, forward: bool = True) -> str: |