summaryrefslogtreecommitdiff
path: root/mercurial/fancyopts.py
diff options
context:
space:
mode:
Diffstat (limited to 'mercurial/fancyopts.py')
-rw-r--r--mercurial/fancyopts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mercurial/fancyopts.py b/mercurial/fancyopts.py
index ae18083..7c9e07f 100644
--- a/mercurial/fancyopts.py
+++ b/mercurial/fancyopts.py
@@ -75,7 +75,7 @@ def fancyopts(args, options, state, gnu=False):
# copy defaults to state
if isinstance(default, list):
state[name] = default[:]
- elif getattr(default, '__call__', False):
+ elif hasattr(default, '__call__'):
state[name] = None
else:
state[name] = default