Commit 63fb5214 authored by Reinout van Rees's avatar Reinout van Rees

Simplification suggested by @mgedmin

parent a7c82113
......@@ -125,8 +125,7 @@ def system(command, input='', with_exit_code=False):
if with_exit_code:
# Use the with_exit_code=True parameter when you want to test the exit
# code of the command you're running.
p.wait() # Sets the return code.
output += 'EXIT CODE: %s' % p.returncode
output += 'EXIT CODE: %s' % p.wait()
return output
def get(url):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment