From: Christopher Allan Webber Date: Thu, 11 Feb 2016 18:23:06 +0000 (-0800) Subject: .iteritems() doesn't exist in Python 3, converted to .items() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1eaad45f89f4c914be03e15732ebb51096f4eb63;p=mediagoblin.git .iteritems() doesn't exist in Python 3, converted to .items() --- diff --git a/mediagoblin/tools/text.py b/mediagoblin/tools/text.py index 41b7eaea..48a53d23 100644 --- a/mediagoblin/tools/text.py +++ b/mediagoblin/tools/text.py @@ -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):