getargspec -> getfullargspec
former is deprecated since Python 3.0
This commit is contained in:
parent
e7ceebd867
commit
c85c62deda
@ -603,7 +603,7 @@ def runSubprocess(command, return_code=False, **kwargs):
|
||||
if p.returncode != 0:
|
||||
print(output)
|
||||
err_fun = sp.CalledProcessError.__init__
|
||||
if 'output' in inspect.getargspec(err_fun).args:
|
||||
if 'output' in inspect.getfullargspec(err_fun).args:
|
||||
raise sp.CalledProcessError(p.returncode, command, output)
|
||||
else:
|
||||
raise sp.CalledProcessError(p.returncode, command)
|
||||
|
Loading…
Reference in New Issue
Block a user