mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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
|
self.clinic.__dict__[name] = value
|
||||||
|
|
||||||
def directive_destination(self, name, command, *args):
|
def directive_destination(self, name, command, *args):
|
||||||
if command is 'new':
|
if command == 'new':
|
||||||
self.clinic.add_destination(name, command, *args)
|
self.clinic.add_destination(name, *args)
|
||||||
return
|
return
|
||||||
|
|
||||||
if command is 'clear':
|
if command == 'clear':
|
||||||
self.clinic.get_destination(name).clear()
|
self.clinic.get_destination(name).clear()
|
||||||
fail("unknown destination command", repr(command))
|
fail("unknown destination command", repr(command))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue