You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by le...@apache.org on 2016/04/21 06:46:48 UTC
climate git commit: CLIMATE-782 Resolve BeautifulSoup warnings in
esgf data_source and add myproxyclient to easy-ocw install
Repository: climate
Updated Branches:
refs/heads/master 45357f7eb -> 07956fa96
CLIMATE-782 Resolve BeautifulSoup warnings in esgf data_source and add myproxyclient to easy-ocw install
Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/07956fa9
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/07956fa9
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/07956fa9
Branch: refs/heads/master
Commit: 07956fa9630755db5c0b2c1ec0c1a2af31a54405
Parents: 45357f7
Author: Lewis John McGibbney <le...@gmail.com>
Authored: Wed Apr 20 14:24:41 2016 -0700
Committer: Lewis John McGibbney <le...@gmail.com>
Committed: Wed Apr 20 14:24:41 2016 -0700
----------------------------------------------------------------------
easy-ocw/ocw-pip-dependencies.txt | 1 +
ocw/data_source/esgf.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/climate/blob/07956fa9/easy-ocw/ocw-pip-dependencies.txt
----------------------------------------------------------------------
diff --git a/easy-ocw/ocw-pip-dependencies.txt b/easy-ocw/ocw-pip-dependencies.txt
index 9337964..dfdae84 100644
--- a/easy-ocw/ocw-pip-dependencies.txt
+++ b/easy-ocw/ocw-pip-dependencies.txt
@@ -10,3 +10,4 @@ sphinxcontrib-httpdomain==1.2.1
esgf-pyclient==0.1.2
python-dateutil==2.4.1
mock==1.3.0
+myproxyclient==1.4.3
http://git-wip-us.apache.org/repos/asf/climate/blob/07956fa9/ocw/data_source/esgf.py
----------------------------------------------------------------------
diff --git a/ocw/data_source/esgf.py b/ocw/data_source/esgf.py
index be65007..3ea559f 100644
--- a/ocw/data_source/esgf.py
+++ b/ocw/data_source/esgf.py
@@ -110,7 +110,7 @@ def _get_file_download_data(dataset_id, variable, url=DEFAULT_ESGF_SEARCH):
url = url.format(dataset_id, variable)
r = requests.get(url)
- xml = BeautifulSoup(r.content)
+ xml = BeautifulSoup(r.content, "html.parser")
dont_have_results = not bool(xml.response.result['numfound'])