diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-01-22 05:07:12 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-01-22 05:07:12 (GMT) |
commit | 071baa63c4ea3a54a54d90b173dd777e08895976 (patch) | |
tree | 19f7bc0044871f5807cec92dea0ae6cff01c6e06 | |
parent | 45726d3011ab00c0c223fd0a4e93ae7135ba66bf (diff) | |
download | cpython-071baa63c4ea3a54a54d90b173dd777e08895976.zip cpython-071baa63c4ea3a54a54d90b173dd777e08895976.tar.gz cpython-071baa63c4ea3a54a54d90b173dd777e08895976.tar.bz2 |
Argument Clinic: make 'destination' directive work.
-rwxr-xr-x | Tools/clinic/clinic.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 69b5c4d..289ec26 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -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)) |