Fixed #28860 -- Removed unnecessary len() calls.

This commit is contained in:
Дилян Палаузов 2017-11-29 11:54:34 -05:00 committed by Tim Graham
parent 3d94ee8500
commit d2afa5eb23
33 changed files with 56 additions and 55 deletions

View file

@ -1061,7 +1061,7 @@ class Query:
and get_transform().
"""
# __exact is the default lookup if one isn't given.
if len(lookups) == 0:
if not lookups:
lookups = ['exact']
for name in lookups[:-1]: