1
0
mirror of https://github.com/django/django.git synced 2025-10-30 09:06:13 +00:00

Fixed all E261 warnings

This commit is contained in:
coagulant
2013-11-03 01:02:56 +04:00
committed by Tim Graham
parent 2a03a9a9a1
commit 3bc0d46a84
154 changed files with 647 additions and 647 deletions

View File

@@ -1627,16 +1627,16 @@ def prefetch_related_objects(result_cache, related_lookups):
from a QuerySet
"""
if len(result_cache) == 0:
return # nothing to do
return # nothing to do
# We need to be able to dynamically add to the list of prefetch_related
# lookups that we look up (see below). So we need some book keeping to
# ensure we don't do duplicate work.
done_lookups = set() # list of lookups like foo__bar__baz
done_lookups = set() # list of lookups like foo__bar__baz
done_queries = {} # dictionary of things like 'foo__bar': [results]
auto_lookups = [] # we add to this as we go through.
followed_descriptors = set() # recursion protection
auto_lookups = [] # we add to this as we go through.
followed_descriptors = set() # recursion protection
all_lookups = itertools.chain(related_lookups, auto_lookups)
for lookup in all_lookups: