mirror of
https://github.com/django/django.git
synced 2025-08-08 04:48:27 +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:
parent
36e90d1f45
commit
14ecbd02a3
10 changed files with 14 additions and 17 deletions
|
@ -13,7 +13,7 @@ from django.apps import apps
|
|||
from django.core.exceptions import FieldDoesNotExist
|
||||
from django.db.backends import utils
|
||||
from django.db.models.constants import LOOKUP_SEP
|
||||
from django.utils import six, tree
|
||||
from django.utils import tree
|
||||
|
||||
# PathInfo is used when converting lookups (fk__somecol). The contents
|
||||
# describe the relation in Model terms (model Options and Fields for both
|
||||
|
@ -53,7 +53,7 @@ class Q(tree.Node):
|
|||
default = AND
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(Q, self).__init__(children=list(args) + list(six.iteritems(kwargs)))
|
||||
super(Q, self).__init__(children=list(args) + list(kwargs.items()))
|
||||
|
||||
def _combine(self, other, conn):
|
||||
if not isinstance(other, Q):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue