.iteritems() doesn't exist in Python 3, converted to .items()

This commit is contained in:
Christopher Allan Webber 2016-02-11 10:23:06 -08:00
parent 493698a536
commit 1eaad45f89

View File

@ -73,7 +73,7 @@ def convert_to_tag_list_of_dicts(tag_string):
# Ignore empty tags or duplicate slugs
if tag:
slug_to_name[url.slugify(tag)] = tag
return [{'name': v, 'slug': k} for (k,v) in slug_to_name.iteritems()]
return [{'name': v, 'slug': k} for (k,v) in slug_to_name.items()]
def media_tags_as_string(media_entry_tags):