##// END OF EJS Templates
safehasattr: pass attribute name as string instead of bytes...
marmoute -
r51514:82232059 default
parent child Browse files
Show More
@@ -810,7 +810,7 b' def help_('
810 doc = gettext(pycompat.getdoc(entry[0]))
810 doc = gettext(pycompat.getdoc(entry[0]))
811 if not doc:
811 if not doc:
812 doc = _(b"(no help text available)")
812 doc = _(b"(no help text available)")
813 if util.safehasattr(entry[0], b'definition'): # aliased command
813 if util.safehasattr(entry[0], 'definition'): # aliased command
814 source = entry[0].source
814 source = entry[0].source
815 if entry[0].definition.startswith(b'!'): # shell alias
815 if entry[0].definition.startswith(b'!'): # shell alias
816 doc = _(b'shell alias for: %s\n\n%s\n\ndefined by: %s\n') % (
816 doc = _(b'shell alias for: %s\n\n%s\n\ndefined by: %s\n') % (
General Comments 0
You need to be logged in to leave comments. Login now