Skip to content

Commit

Permalink
Fix raw_data stream decoding (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
rflprr authored Mar 20, 2017
1 parent 6e8b406 commit ad835d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datadotworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

from datadotworld.datadotworld import load_dataset, query, api_client

__version__ = '1.0.0-beta.2'
__version__ = '1.0.0-beta.3'
2 changes: 1 addition & 1 deletion datadotworld/models/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _load_table(self, resource_name):
file_format = tabular_resource.descriptor['format']
with Stream(six.BytesIO(self.raw_data[resource_name]),
format=file_format, headers=1,
scheme='stream') as stream:
scheme='stream', encoding='utf-8') as stream:
return [OrderedDict(zip(stream.headers, row))
for row in stream.iter()]

Expand Down

0 comments on commit ad835d6

Please sign in to comment.