From 1eaad45f89f4c914be03e15732ebb51096f4eb63 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 11 Feb 2016 10:23:06 -0800 Subject: [PATCH] .iteritems() doesn't exist in Python 3, converted to .items() --- mediagoblin/tools/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.25.1