We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac3ed3c commit 140b64dCopy full SHA for 140b64d
lib/fetch.py
@@ -57,13 +57,15 @@ def _fetch_locations(known_location):
57
sys.stdout.write("Fetching %s..." % (adptr))
58
sys.stdout.flush()
59
try:
60
- process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ process = subprocess.Popen(
61
+ cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
62
+ universal_newlines=True)
63
except OSError:
64
print("\nERROR: %s" % cmd)
65
raise
66
output = process.communicate()[0]
67
if process.returncode != 0:
- sys.stdout.write("\nERROR:\n---\n" + str(output))
68
+ sys.stdout.write("\nERROR:\n---\n" + output)
69
fatal("---\nCould not fetch %s" % adptr)
70
else:
71
print("Done")
0 commit comments