##// END OF EJS Templates
extensions: use inspect module instead of func_code.co_argcount...
Augie Fackler -
r31263:d79761fe default
parent child Browse files
Show More
@@ -8,6 +8,7 b''
8 from __future__ import absolute_import
8 from __future__ import absolute_import
9
9
10 import imp
10 import imp
11 import inspect
11 import os
12 import os
12
13
13 from .i18n import (
14 from .i18n import (
@@ -150,7 +151,7 b' def _runextsetup(name, ui):'
150 try:
151 try:
151 extsetup(ui)
152 extsetup(ui)
152 except TypeError:
153 except TypeError:
153 if extsetup.func_code.co_argcount != 0:
154 if inspect.getargspec(extsetup).args:
154 raise
155 raise
155 extsetup() # old extsetup with no ui argument
156 extsetup() # old extsetup with no ui argument
156
157
General Comments 0
You need to be logged in to leave comments. Login now