commit | 93662417e9253ed87eb94f0b7b51491bfcca3eed | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Aug 19 16:09:41 2006 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Aug 19 16:09:41 2006 +0000 |
tree | bb9fa38905e38a8097f4e110938e8acbec09c112 | |
parent | 49061f7b8f8c0e5ca123a545447781e10a3b77d9 [diff] [blame] |
More has_key() fixes. The optparse fix is a fix to the previous fix, which broke has_option().
diff --git a/Lib/optparse.py b/Lib/optparse.py index a02f79a..0972f74 100644 --- a/Lib/optparse.py +++ b/Lib/optparse.py
@@ -1040,7 +1040,7 @@ 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)