From 13f37e75eb9a1f3e68b183eacfd1a51572d452c2 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Tue, 16 Sep 2014 15:07:33 -0500 Subject: [PATCH] Fix iteritems usage on python 3 This commit sponsored by Ben (Free Software Melbourne) Finney. Thanks! --- mediagoblin/edit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 59d851f6..7359f520 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -455,7 +455,7 @@ def edit_metadata(request, media): return redirect_obj(request, media) if len(form.media_metadata) == 0: - for identifier, value in media.media_metadata.iteritems(): + for identifier, value in six.iteritems(media.media_metadata): if identifier == "@context": continue form.media_metadata.append_entry({ 'identifier':identifier, -- 2.25.1