Argument Clinic: make 'destination' directive work.

This commit is contained in:
Zachary Ware 2014-01-21 23:07:12 -06:00
parent 45726d3011
commit 071baa63c4
1 changed files with 3 additions and 3 deletions

View File

@ -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))