Fix bug introduced by 78437acb4aab80f7c6cd5fa0f58de5ffd94d8ec5.
This commit is contained in:
parent
48ad7e9b69
commit
3a149f655f
@ -88,7 +88,7 @@ def get_content(path, ui=None):
|
|||||||
if content_type(path) == 'url':
|
if content_type(path) == 'url':
|
||||||
if ui is not None:
|
if ui is not None:
|
||||||
ui.print_('dowloading {}'.format(path))
|
ui.print_('dowloading {}'.format(path))
|
||||||
response = urllib2.urlopen(path)
|
response = urlopen(path)
|
||||||
return response.read()
|
return response.read()
|
||||||
else:
|
else:
|
||||||
return read_file(path)
|
return read_file(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user