More has_key() fixes.
The optparse fix is a fix to the previous fix, which broke has_option().
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user