Skip to content

Commit

Permalink
improved readability of table options preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Apr 11, 2017
1 parent f2a2b46 commit ed4ffd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datapackage/resource_new.py
Expand Up @@ -190,8 +190,9 @@ def _get_table_options(descriptor):

# General
options = {}
if not descriptor.get('data'):
options['format'] = 'csv'
options['format'] = 'csv'
if descriptor.get('data'):
options['format'] = 'native'
options['encoding'] = descriptor['encoding']
options['skip_rows'] = descriptor.get('skipRows', [])

Expand Down

0 comments on commit ed4ffd0

Please sign in to comment.