Skip to content

Commit

Permalink
[#3344] pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Dec 2, 2016
1 parent 2fe4f67 commit e29e8cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckanext/datastore/controller.py
Expand Up @@ -40,8 +40,9 @@ def dump(self, resource_id):

if not wr:
pylons.response.headers['Content-Type'] = 'text/csv'
pylons.response.headers['Content-disposition'] = \
'attachment; filename="{name}.csv"'.format(name=resource_id)
pylons.response.headers['Content-disposition'] = (
'attachment; filename="{name}.csv"'.format(
name=resource_id))
wr = csv.writer(pylons.response, encoding='utf-8')

header = [x['id'] for x in result['fields']]
Expand Down

0 comments on commit e29e8cd

Please sign in to comment.