Skip to content

Commit

Permalink
Use items instead of iteritems
Browse files Browse the repository at this point in the history
it works in python2 ánd python3. Might be slower in Python 2.
  • Loading branch information
Stef Bastiaansen committed Jun 10, 2016
1 parent b48d7ec commit 811d8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biblio/biblio.py
Expand Up @@ -227,7 +227,7 @@ def dictionary_to_namedtuple(item):
namedtuple: Containing the recursive indexed data of the dict
"""
for key, value in item.iteritems(): # pylint: disable=unused-variable
for key, value in item.items(): # pylint: disable=unused-variable

new_key = key

Expand Down

0 comments on commit 811d8e9

Please sign in to comment.