From: Christopher Allan Webber Date: Tue, 16 Sep 2014 20:07:33 +0000 (-0500) Subject: Fix iteritems usage on python 3 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=13f37e75eb9a1f3e68b183eacfd1a51572d452c2;p=mediagoblin.git Fix iteritems usage on python 3 This commit sponsored by Ben (Free Software Melbourne) Finney. Thanks! --- 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,