.iteritems() doesn't exist in Python 3, converted to .items()
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 11 Feb 2016 18:23:06 +0000 (10:23 -0800)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 11 Feb 2016 18:23:06 +0000 (10:23 -0800)
mediagoblin/tools/text.py

index 41b7eaeab2d70b3564ceff21bd121dfdf1a1b953..48a53d2312d9a4022a1148dc16c0d0fac294c26e 100644 (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):