Show More
@@ -189,7 +189,11 b' def clean(mctx, x):' | |||
|
189 | 189 | def func(mctx, a, b): |
|
190 | 190 | if a[0] == 'symbol' and a[1] in symbols: |
|
191 | 191 | return symbols[a[1]](mctx, b) |
|
192 | raise error.UnknownIdentifier(a[1], symbols.keys()) | |
|
192 | ||
|
193 | keep = lambda fn: getattr(fn, '__doc__', None) is not None | |
|
194 | ||
|
195 | syms = [s for (s, fn) in symbols.items() if keep(fn)] | |
|
196 | raise error.UnknownIdentifier(a[1], syms) | |
|
193 | 197 | |
|
194 | 198 | def getlist(x): |
|
195 | 199 | if not x: |
General Comments 0
You need to be logged in to leave comments.
Login now