Show More
@@ -186,7 +186,11 b' def _runextsetup(name, ui):' | |||
|
186 | 186 | try: |
|
187 | 187 | extsetup(ui) |
|
188 | 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 | 194 | raise |
|
191 | 195 | extsetup() # old extsetup with no ui argument |
|
192 | 196 | except Exception as inst: |
General Comments 0
You need to be logged in to leave comments.
Login now