changeset 21794:753af9ee7c81

fancyopts: restore use of callable() since it was readded in Python 3.2
author Augie Fackler <raf@durin42.com>
date Mon, 23 Jun 2014 09:24:16 -0400
parents e0b29a0c36c4
children 711498bb4ff5
files mercurial/fancyopts.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/fancyopts.py	Mon Jun 23 09:23:57 2014 -0400
+++ b/mercurial/fancyopts.py	Mon Jun 23 09:24:16 2014 -0400
@@ -77,7 +77,7 @@
         # copy defaults to state
         if isinstance(default, list):
             state[name] = default[:]
-        elif getattr(default, '__call__', False):
+        elif callable(default):
             state[name] = None
         else:
             state[name] = default