diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-20 21:14:27 +0200 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-07 12:00:22 +0200 |
commit | ee191715eae73362768184aa95206cf61bac5d38 (patch) | |
tree | f6ffc0bf4dfaea9f91cf8536ba2aeb9a69a81a6d /django/template/base.py | |
parent | fa3f0aa021bea85b9196ef154a32c7bb1023a1e9 (diff) | |
download | django-ee191715eae73362768184aa95206cf61bac5d38.tar.gz |
[py3] Fixed access to dict keys/values/items.
Diffstat (limited to 'django/template/base.py')
-rw-r--r-- | django/template/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py index 489b1681e0..d5c2438500 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -961,7 +961,7 @@ def parse_bits(parser, bits, params, varargs, varkw, defaults, kwarg = token_kwargs([bit], parser) if kwarg: # The kwarg was successfully extracted - param, value = kwarg.items()[0] + param, value = list(six.iteritems(kwarg))[0] if param not in params and varkw is None: # An unexpected keyword argument was supplied raise TemplateSyntaxError( |