mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Removed cases of six.iter* wrapped in a list()
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
This commit is contained in:
@@ -1097,7 +1097,7 @@ def parse_bits(parser, bits, params, varargs, varkw, defaults,
|
||||
kwarg = token_kwargs([bit], parser)
|
||||
if kwarg:
|
||||
# The kwarg was successfully extracted
|
||||
param, value = list(six.iteritems(kwarg))[0]
|
||||
param, value = kwarg.popitem()
|
||||
if param not in params and varkw is None:
|
||||
# An unexpected keyword argument was supplied
|
||||
raise TemplateSyntaxError(
|
||||
|
||||
Reference in New Issue
Block a user