Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modernise 'destination' directive
  • Loading branch information
erlend-aasland committed Jul 21, 2023
commit 0859b197f1e0be2d38c761dfe0cc7a2378770a7d
15 changes: 7 additions & 8 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4487,14 +4487,13 @@ def directive_destination(
command: str,
*args
) -> None:
if command == 'new':
self.clinic.add_destination(name, *args)
return

if command == 'clear':
self.clinic.get_destination(name).clear()
return
fail("unknown destination command", repr(command))
match command:
case "new":
self.clinic.add_destination(name, *args)
case "clear":
self.clinic.get_destination(name).clear()
case _:
fail("unknown destination command", repr(command))


def directive_output(
Expand Down