aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-19 16:09:41 +0000
committerGuido van Rossum <guido@python.org>2006-08-19 16:09:41 +0000
commit93662417e9253ed87eb94f0b7b51491bfcca3eed (patch)
treebb9fa38905e38a8097f4e110938e8acbec09c112 /Lib/optparse.py
parentStomp out more hsa_key() calls. (diff)
downloadcpython-93662417e9253ed87eb94f0b7b51491bfcca3eed.tar.gz
cpython-93662417e9253ed87eb94f0b7b51491bfcca3eed.tar.bz2
cpython-93662417e9253ed87eb94f0b7b51491bfcca3eed.zip
More has_key() fixes.
The optparse fix is a fix to the previous fix, which broke has_option().
Diffstat (limited to 'Lib/optparse.py')
-rw-r--r--Lib/optparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/optparse.py b/Lib/optparse.py
index a02f79a0988..0972f74bcce 100644
--- a/Lib/optparse.py
+++ b/Lib/optparse.py
@@ -1040,7 +1040,7 @@ class OptionContainer:
def has_option(self, opt_str):
return (opt_str in self._short_opt or
- opt_str) in self._long_opt
+ opt_str in self._long_opt)
def remove_option(self, opt_str):
option = self._short_opt.get(opt_str)