mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Argument Clinic: make 'destination' directive work.
This commit is contained in:
parent
45726d3011
commit
071baa63c4
1 changed files with 3 additions and 3 deletions
|
@ -2752,11 +2752,11 @@ class DSLParser:
|
|||
self.clinic.__dict__[name] = value
|
||||
|
||||
def directive_destination(self, name, command, *args):
|
||||
if command is 'new':
|
||||
self.clinic.add_destination(name, command, *args)
|
||||
if command == 'new':
|
||||
self.clinic.add_destination(name, *args)
|
||||
return
|
||||
|
||||
if command is 'clear':
|
||||
if command == 'clear':
|
||||
self.clinic.get_destination(name).clear()
|
||||
fail("unknown destination command", repr(command))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue