diff --git a/pubs/content.py b/pubs/content.py index 621ab32..f4b9c03 100644 --- a/pubs/content.py +++ b/pubs/content.py @@ -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)