mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Fixed linting issues
This commit is contained in:
parent
2cc2fafd2e
commit
df06c4da3b
@ -1,5 +1,6 @@
|
||||
import argparse
|
||||
|
||||
|
||||
def common_options(parser, opts):
|
||||
parser.add_argument(
|
||||
'--version',
|
||||
|
@ -266,6 +266,7 @@ def colorize_url(url):
|
||||
('url_punctuation', 3), # ://
|
||||
] + colorize_host(parts[2]) + colorize_req('/' + parts[3])
|
||||
|
||||
|
||||
@lru_cache(maxsize=800)
|
||||
def raw_format_list(f):
|
||||
f = dict(f)
|
||||
@ -353,6 +354,7 @@ def raw_format_list(f):
|
||||
pile.append(urwid.Columns(resp, dividechars=1))
|
||||
return urwid.Pile(pile)
|
||||
|
||||
|
||||
@lru_cache(maxsize=800)
|
||||
def raw_format_table(f):
|
||||
f = dict(f)
|
||||
|
@ -125,7 +125,6 @@ class ConsoleAddon:
|
||||
str, "default",
|
||||
"Set the flowlist layout",
|
||||
choices=sorted(console_flowlist_layout)
|
||||
|
||||
)
|
||||
|
||||
@command.command("console.layout.options")
|
||||
|
@ -90,7 +90,6 @@ class FlowListBox(urwid.ListBox, layoutwidget.LayoutWidget):
|
||||
["console_flowlist_layout"]
|
||||
)
|
||||
|
||||
|
||||
def keypress(self, size, key):
|
||||
if key == "m_start":
|
||||
self.master.commands.execute("view.focus.go 0")
|
||||
@ -105,4 +104,3 @@ class FlowListBox(urwid.ListBox, layoutwidget.LayoutWidget):
|
||||
|
||||
def set_flowlist_layout(self, opts, updated):
|
||||
self.master.ui.clear()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user