From 93662417e9253ed87eb94f0b7b51491bfcca3eed Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 19 Aug 2006 16:09:41 +0000 Subject: More has_key() fixes. The optparse fix is a fix to the previous fix, which broke has_option(). --- Lib/optparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/optparse.py') diff --git a/Lib/optparse.py b/Lib/optparse.py index a02f79a098..0972f74bcc 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) -- cgit v1.2.1