diff mercurial/commands.py @ 14943:d3bb825ddae3

globally: use safehasattr(x, '__call__') instead of hasattr(x, '__call__')
author Augie Fackler <durin42@gmail.com>
date Mon, 25 Jul 2011 16:24:37 -0500
parents ebdfdba0faaf
children a4435770cf57
line wrap: on
line diff
--- 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)