##// END OF EJS Templates
extensions: attempt to use non-deprecated inspect method...
Augie Fackler -
r33688:62fbe950 default
parent child Browse files
Show More
@@ -186,7 +186,11 b' def _runextsetup(name, ui):'
186 try:
186 try:
187 extsetup(ui)
187 extsetup(ui)
188 except TypeError:
188 except TypeError:
189 if inspect.getargspec(extsetup).args:
189 # Try to use getfullargspec (Python 3) first, and fall
190 # back to getargspec only if it doesn't exist so as to
191 # avoid warnings.
192 if getattr(inspect, 'getfullargspec',
193 getattr(inspect, 'getargspec'))(extsetup).args:
190 raise
194 raise
191 extsetup() # old extsetup with no ui argument
195 extsetup() # old extsetup with no ui argument
192 except Exception as inst:
196 except Exception as inst:
General Comments 0
You need to be logged in to leave comments. Login now