Fix unittests for Python 2.7

This commit is contained in:
Phyks 2015-09-05 16:55:14 +02:00
parent f7bcdece5f
commit 5f8665940d
1 changed files with 1 additions and 3 deletions

View File

@ -22,9 +22,7 @@ try:
from urllib.error import URLError from urllib.error import URLError
except ImportError: except ImportError:
# Fall back to Python 2's urllib2 # Fall back to Python 2's urllib2
from urllib2 import urlopen, Request from urllib2 import urlopen, Request, URLError
class URLError(Exception):
pass
import arxiv2bib as arxiv_metadata import arxiv2bib as arxiv_metadata
import libbmc.tools as tools import libbmc.tools as tools
import bibtexparser import bibtexparser