minor: fix key bindings, adjust flow command presentation

Fixes #2681
This commit is contained in:
Aldo Cortesi 2017-12-16 10:56:31 +13:00
parent cd913d598d
commit 2649e57691
3 changed files with 3 additions and 3 deletions

View File

@ -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]:

View File

@ -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",

View File

@ -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]"