Skip to content

Commit

Permalink
BUG: Decode metadata to utf-8. Closes #1326.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseabold committed Jan 25, 2014
1 parent 1cffdbf commit 322bef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsmodels/datasets/utils.py
Expand Up @@ -198,7 +198,7 @@ def _get_dataset_meta(dataname, package, cache):
data, _ = _urlopen_cached(index_url, cache)
#Python 3
if sys.version[0] == '3': # pragma: no cover
data = data.decode('ascii', errors='strict')
data = data.decode('utf-8', errors='strict')
index = read_csv(StringIO(data))
idx = np.logical_and(index.Item == dataname, index.Package == package)
dataset_meta = index.ix[idx]
Expand Down

0 comments on commit 322bef1

Please sign in to comment.