i18n/hggettext
branchstable
changeset 45763 bea8cf87bef3
parent 43691 47ef023d0165
child 45830 c102b704edb5
equal deleted inserted replaced
45762:0599c83cdf5c 45763:bea8cf87bef3
   121 
   121 
   122     cmdtable = getattr(mod, 'cmdtable', {})
   122     cmdtable = getattr(mod, 'cmdtable', {})
   123     if not cmdtable:
   123     if not cmdtable:
   124         # Maybe we are processing mercurial.commands?
   124         # Maybe we are processing mercurial.commands?
   125         cmdtable = getattr(mod, 'table', {})
   125         cmdtable = getattr(mod, 'table', {})
   126     functions.extend((c[0], False) for c in cmdtable.itervalues())
   126     functions.extend((c[0], False) for c in cmdtable.values())
   127 
   127 
   128     for func, rstrip in functions:
   128     for func, rstrip in functions:
   129         if func.__doc__:
   129         if func.__doc__:
   130             docobj = func  # this might be a proxy to provide formatted doc
   130             docobj = func  # this might be a proxy to provide formatted doc
   131             func = getattr(func, '_origfunc', func)
   131             func = getattr(func, '_origfunc', func)