# HG changeset patch # User Augie Fackler # Date 1311626173 18000 # Node ID ce7e3014fda78aca266ac0fabd2f2278c56d00d4 # Parent 6ee6ecf1ee89d700e9b654f2a169668c01bf9828 help command: use safehasattr instead of hasattr diff -r 6ee6ecf1ee89 -r ce7e3014fda7 mercurial/commands.py --- a/mercurial/commands.py Mon Jul 25 16:27:08 2011 -0500 +++ b/mercurial/commands.py Mon Jul 25 15:36:13 2011 -0500 @@ -2648,7 +2648,7 @@ 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: