Skip to content

Commit

Permalink
Merge branch 'fix-py3-syntax-error'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 4, 2020
2 parents b693bc9 + a7f4394 commit f5a2b69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/dcat/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from builtins import object
import os

import six

from ckantoolkit import config

from ckan import plugins as p
Expand Down Expand Up @@ -110,7 +112,7 @@ def after_show(self, context, data_dict):
field_labels = utils.field_labels()

def set_titles(object_dict):
for key, value in object_dict.copy().iteritems():
for key, value in six.iteritems(object_dict.copy()):
if key in field_labels:
object_dict[field_labels[key]] = object_dict[key]
del object_dict[key]
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ rdflib-jsonld==0.4.0
geomet>=0.2.0
ckantoolkit==0.0.3
future>=0.18.2
six

0 comments on commit f5a2b69

Please sign in to comment.