Mercurial > hg-stable
diff mercurial/fancyopts.py @ 8366:0bf0045000b5
some modernization cleanups, forward compatibility
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 13 May 2009 14:08:39 +0200 |
parents | ec98f35e3e16 |
children | 25e572394f5c |
line wrap: on
line diff
--- 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