diff --git a/mitmproxy/command.py b/mitmproxy/command.py index 7d7fa7353..b3c8eb223 100644 --- a/mitmproxy/command.py +++ b/mitmproxy/command.py @@ -92,7 +92,7 @@ def typename(t: type, ret: bool) -> str: if isinstance(t, Choice): return "choice" elif t == typing.Sequence[flow.Flow]: - return "[flow]" if ret else "flowspec" + return "[flow]" elif t == typing.Sequence[str]: return "[str]" elif t == typing.Sequence[Cut]: diff --git a/mitmproxy/tools/console/defaultkeys.py b/mitmproxy/tools/console/defaultkeys.py index 7e078bbf7..7920225b6 100644 --- a/mitmproxy/tools/console/defaultkeys.py +++ b/mitmproxy/tools/console/defaultkeys.py @@ -157,7 +157,7 @@ def map(km): ) km.add("e", "console.grideditor.editor", ["grideditor"], "Edit in external editor") - km.add("z", "console.eventlog.clear", ["eventlog"], "Clear") + km.add("z", "eventstore.clear", ["eventlog"], "Clear") km.add( "a", diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py index 066cbf155..47680c996 100644 --- a/test/mitmproxy/test_command.py +++ b/test/mitmproxy/test_command.py @@ -153,7 +153,7 @@ def test_simple(): def test_typename(): assert command.typename(str, True) == "str" assert command.typename(typing.Sequence[flow.Flow], True) == "[flow]" - assert command.typename(typing.Sequence[flow.Flow], False) == "flowspec" + assert command.typename(typing.Sequence[flow.Flow], False) == "[flow]" assert command.typename(command.Cuts, True) == "[cuts]" assert command.typename(typing.Sequence[command.Cut], False) == "[cut]"