summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-01-22 05:07:12 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2014-01-22 05:07:12 (GMT)
commit071baa63c4ea3a54a54d90b173dd777e08895976 (patch)
tree19f7bc0044871f5807cec92dea0ae6cff01c6e06 /Tools
parent45726d3011ab00c0c223fd0a4e93ae7135ba66bf (diff)
downloadcpython-071baa63c4ea3a54a54d90b173dd777e08895976.zip
cpython-071baa63c4ea3a54a54d90b173dd777e08895976.tar.gz
cpython-071baa63c4ea3a54a54d90b173dd777e08895976.tar.bz2
Argument Clinic: make 'destination' directive work.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/clinic/clinic.py6
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))