mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
More has_key() fixes.
The optparse fix is a fix to the previous fix, which broke has_option().
This commit is contained in:
parent
49061f7b8f
commit
93662417e9
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue