equal
deleted
inserted
replaced
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) |