From 3a149f655f6bc3efc6663a82c40b5ff70684d1e2 Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Wed, 23 Apr 2014 16:52:31 +0200 Subject: [PATCH] Fix bug introduced by 78437acb4aab80f7c6cd5fa0f58de5ffd94d8ec5. --- pubs/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)