Skip to content

Commit

Permalink
Made utils.convert compatible with Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lucastheis committed Sep 4, 2016
1 parent 04a4c2f commit fea28f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2s/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def convert(input):
"""

if isinstance(input, dict):
return dict([(convert(key), convert(value)) for key, value in input.iteritems()])
return dict([(convert(key), convert(value)) for key, value in input.items()])
elif isinstance(input, list):
return [convert(element) for element in input]
elif isinstance(input, unicode):
Expand Down

0 comments on commit fea28f9

Please sign in to comment.