Show More
@@ -360,7 +360,12 b' def _dispatch(ui, args):' | |||
|
360 | 360 | for name, module in exts: |
|
361 | 361 | extsetup = getattr(module, 'extsetup', None) |
|
362 | 362 | if extsetup: |
|
363 |
|
|
|
363 | try: | |
|
364 | extsetup(ui) | |
|
365 | except TypeError: | |
|
366 | if extsetup.func_code.co_argcount != 0: | |
|
367 | raise | |
|
368 | extsetup() # old extsetup with no ui argument | |
|
364 | 369 | |
|
365 | 370 | for name, module in exts: |
|
366 | 371 | cmdtable = getattr(module, 'cmdtable', {}) |
General Comments 0
You need to be logged in to leave comments.
Login now