equal
deleted
inserted
replaced
193 if extsetup: |
193 if extsetup: |
194 try: |
194 try: |
195 try: |
195 try: |
196 extsetup(ui) |
196 extsetup(ui) |
197 except TypeError: |
197 except TypeError: |
198 # Try to use getfullargspec (Python 3) first, and fall |
198 if pycompat.getargspec(extsetup).args: |
199 # back to getargspec only if it doesn't exist so as to |
|
200 # avoid warnings. |
|
201 if getattr(inspect, 'getfullargspec', |
|
202 getattr(inspect, 'getargspec'))(extsetup).args: |
|
203 raise |
199 raise |
204 extsetup() # old extsetup with no ui argument |
200 extsetup() # old extsetup with no ui argument |
205 except Exception as inst: |
201 except Exception as inst: |
206 ui.traceback(force=True) |
202 ui.traceback(force=True) |
207 msg = util.forcebytestr(inst) |
203 msg = util.forcebytestr(inst) |