diff -r 5b072d4b62f2 -r d3bb825ddae3 mercurial/commands.py --- a/mercurial/commands.py Mon Jul 25 14:59:55 2011 -0500 +++ b/mercurial/commands.py Mon Jul 25 16:24:37 2011 -0500 @@ -2732,7 +2732,7 @@ # description if not doc: doc = _("(no help text available)") - if hasattr(doc, '__call__'): + if util.safehasattr(doc, '__call__'): doc = doc() ui.write("%s\n\n" % header)