mercurial/commands.py
changeset 14943 d3bb825ddae3
parent 14918 ebdfdba0faaf
child 14949 a4435770cf57
--- 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)