From f7bcdece5f4664c8e78bf207ef544f810c440b2b Mon Sep 17 00:00:00 2001 From: Phyks Date: Sat, 5 Sep 2015 16:49:56 +0200 Subject: [PATCH] Fix unittests for Python 2.7 --- libbmc/fetcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbmc/fetcher.py b/libbmc/fetcher.py index 8d90a0b..c477b69 100644 --- a/libbmc/fetcher.py +++ b/libbmc/fetcher.py @@ -23,6 +23,8 @@ try: except ImportError: # Fall back to Python 2's urllib2 from urllib2 import urlopen, Request + class URLError(Exception): + pass import arxiv2bib as arxiv_metadata import libbmc.tools as tools import bibtexparser