Fix bug introduced by 78437acb4aab80f7c6cd5fa0f58de5ffd94d8ec5.

This commit is contained in:
Olivier Mangin 2014-04-23 16:52:31 +02:00
parent 48ad7e9b69
commit 3a149f655f

View File

@ -88,7 +88,7 @@ def get_content(path, ui=None):
if content_type(path) == 'url':
if ui is not None:
ui.print_('dowloading {}'.format(path))
response = urllib2.urlopen(path)
response = urlopen(path)
return response.read()
else:
return read_file(path)