Show More
@@ -221,14 +221,7 b' def _runextsetup(name, ui):' | |||||
221 | extsetup = getattr(_extensions[name], 'extsetup', None) |
|
221 | extsetup = getattr(_extensions[name], 'extsetup', None) | |
222 | if extsetup: |
|
222 | if extsetup: | |
223 | try: |
|
223 | try: | |
224 |
|
|
224 | extsetup(ui) | |
225 | extsetup(ui) |
|
|||
226 | except TypeError: |
|
|||
227 | if pycompat.getargspec(extsetup).args: |
|
|||
228 | raise |
|
|||
229 | ui.deprecwarn("extsetup for '%s' must take a ui argument" |
|
|||
230 | % name, "4.9") |
|
|||
231 | extsetup() # old extsetup with no ui argument |
|
|||
232 | except Exception as inst: |
|
225 | except Exception as inst: | |
233 | ui.traceback(force=True) |
|
226 | ui.traceback(force=True) | |
234 | msg = stringutil.forcebytestr(inst) |
|
227 | msg = stringutil.forcebytestr(inst) |
General Comments 0
You need to be logged in to leave comments.
Login now