From 5f8665940d30ef37e80f3bef1125a8f9ff889757 Mon Sep 17 00:00:00 2001 From: Phyks Date: Sat, 5 Sep 2015 16:55:14 +0200 Subject: [PATCH] Fix unittests for Python 2.7 --- libbmc/fetcher.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libbmc/fetcher.py b/libbmc/fetcher.py index c477b69..ef0c929 100644 --- a/libbmc/fetcher.py +++ b/libbmc/fetcher.py @@ -22,9 +22,7 @@ try: from urllib.error import URLError except ImportError: # Fall back to Python 2's urllib2 - from urllib2 import urlopen, Request - class URLError(Exception): - pass + from urllib2 import urlopen, Request, URLError import arxiv2bib as arxiv_metadata import libbmc.tools as tools import bibtexparser