summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fetch.py b/fetch.py
index 5b9997a8..91d40cda 100644
--- a/fetch.py
+++ b/fetch.py
@@ -35,4 +35,7 @@ def fetch_file(url):
35 print('fatal: error running "gsutil": %s' % e.output, 35 print('fatal: error running "gsutil": %s' % e.output,
36 file=sys.stderr) 36 file=sys.stderr)
37 sys.exit(1) 37 sys.exit(1)
38 if scheme == 'file':
39 with open(url[len('file://'):], 'rb') as f:
40 return f.read()
38 raise ValueError('unsupported url %s' % url) 41 raise ValueError('unsupported url %s' % url)