mercurial/fancyopts.py
changeset 8366 0bf0045000b5
parent 8230 ec98f35e3e16
child 10263 25e572394f5c
--- a/mercurial/fancyopts.py	Tue May 12 10:03:36 2009 -0400
+++ b/mercurial/fancyopts.py	Wed May 13 14:08:39 2009 +0200
@@ -70,7 +70,7 @@
         # copy defaults to state
         if isinstance(default, list):
             state[name] = default[:]
-        elif callable(default):
+        elif hasattr(default, '__call__'):
             state[name] = None
         else:
             state[name] = default