[Python-checkins] cpython: Argument Clinic: make 'destination' directive work.
zach.ware
python-checkins at python.org
Wed Jan 22 06:07:49 CET 2014
http://hg.python.org/cpython/rev/fbc31e0b0c77
changeset: 88633:fbc31e0b0c77
user: Zachary Ware <zachary.ware at gmail.com>
date: Tue Jan 21 23:07:12 2014 -0600
summary:
Argument Clinic: make 'destination' directive work.
files:
Tools/clinic/clinic.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -2752,11 +2752,11 @@
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))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list