From 43844331a51fbec00b1fcee8695a4ec427f9bd89 Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Mon, 25 Jul 2011 15:36:13 -0500 Subject: [PATCH] help command: use safehasattr instead of hasattr --- mercurial/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/commands.py b/mercurial/commands.py index 92256b7747..c2eab60743 100644 --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2648,7 +2648,7 @@ def help_(ui, name=None, with_version=False, unknowncmd=False, full=True, **opts doc = gettext(entry[0].__doc__) if not doc: doc = _("(no help text available)") - if hasattr(entry[0], 'definition'): # aliased command + if util.safehasattr(entry[0], 'definition'): # aliased command if entry[0].definition.startswith('!'): # shell alias doc = _('shell alias for::\n\n %s') % entry[0].definition[1:] else: