From 962b4adc238f7f980a1e2f6a7aaed76d46eb4b47 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Tue, 19 Jan 2016 17:45:21 +0100 Subject: [PATCH] Fix requests.exception import error --- libbmc/bibtex.py | 4 +--- libbmc/citations/plaintext.py | 2 +- libbmc/repositories/arxiv.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libbmc/bibtex.py b/libbmc/bibtex.py index 47024c9..1d76b22 100644 --- a/libbmc/bibtex.py +++ b/libbmc/bibtex.py @@ -118,11 +118,9 @@ def delete(filename, identifier): def get(filename, ignore_fields=[]): """ - Get an entry from a BibTeX file. + Get all entries from a BibTeX file. :param filename: The name of the BibTeX file. - :param identifier: An optional id of the entry to fetch, in the BibTeX \ - file. :param ignore_fields: An optional list of fields to strip from the BibTeX \ file. diff --git a/libbmc/citations/plaintext.py b/libbmc/citations/plaintext.py index 58ea18c..f5a36cb 100644 --- a/libbmc/citations/plaintext.py +++ b/libbmc/citations/plaintext.py @@ -5,7 +5,7 @@ plaintext files. import os import requests -from requests.exception import RequestException +from requests.exceptions import RequestException from libbmc import doi from libbmc import tools diff --git a/libbmc/repositories/arxiv.py b/libbmc/repositories/arxiv.py index 79c03d2..e5fcb2d 100644 --- a/libbmc/repositories/arxiv.py +++ b/libbmc/repositories/arxiv.py @@ -10,7 +10,7 @@ import tarfile import xml.etree.ElementTree from urllib.error import HTTPError -from requests.exception import RequestException +from requests.exceptions import RequestException from libbmc import tools