mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Merge 3.2
This commit is contained in:
commit
aabbda5354
27 changed files with 51 additions and 54 deletions
|
@ -708,7 +708,7 @@ class Option:
|
|||
|
||||
def _check_callback(self):
|
||||
if self.action == "callback":
|
||||
if not hasattr(self.callback, '__call__'):
|
||||
if not callable(self.callback):
|
||||
raise OptionError(
|
||||
"callback not callable: %r" % self.callback, self)
|
||||
if (self.callback_args is not None and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue