Skip to content

Commit

Permalink
FIX pandas 0.23 compatibility (#3)
Browse files Browse the repository at this point in the history
Closes #2 

Makes sure we are compatible with pandas 0.23
  • Loading branch information
rth authored Nov 8, 2018
1 parent e66f464 commit f7853c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ env:
matrix:
- PYTHON_VERSION="2.7"
- PYTHON_VERSION="3.5"
- PYTHON_VERSION="3.6"
- PYTHON_VERSION="3.6" PANDAS_VERSION="0.22"
- PYTHON_VERSION="3.7" PANDAS_VERSION="0.23"

install:
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
Expand Down
2 changes: 1 addition & 1 deletion pgeocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _get_data(country):
else:
url = DOWNLOAD_URL.format(country=country)
compression = _infer_compression(url, "zip")
reader, encoding, compression = get_filepath_or_buffer(url)
reader, encoding, compression = get_filepath_or_buffer(url)[:3]
with ZipFile(reader) as fh_zip:
with fh_zip.open(country.upper() + '.txt') as fh:
data = pd.read_csv(fh,
Expand Down

0 comments on commit f7853c6

Please sign in to comment.