mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed E117 and F405 flake8 warnings.
This commit is contained in:
parent
738faf9da2
commit
5a5c77d55d
@ -126,7 +126,7 @@ class Envelope:
|
|||||||
raise TypeError('Incorrect type of argument: %s' % type(args[0]))
|
raise TypeError('Incorrect type of argument: %s' % type(args[0]))
|
||||||
elif len(args) == 2:
|
elif len(args) == 2:
|
||||||
# An x and an y parameter were passed in
|
# An x and an y parameter were passed in
|
||||||
return self.expand_to_include((args[0], args[1], args[0], args[1]))
|
return self.expand_to_include((args[0], args[1], args[0], args[1]))
|
||||||
elif len(args) == 4:
|
elif len(args) == 4:
|
||||||
# Individual parameters passed in.
|
# Individual parameters passed in.
|
||||||
return self.expand_to_include(args)
|
return self.expand_to_include(args)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
from django.core.exceptions import EmptyResultSet
|
from django.core.exceptions import EmptyResultSet
|
||||||
from django.db.models.sql.query import * # NOQA
|
from django.db.models.sql.query import * # NOQA
|
||||||
|
from django.db.models.sql.query import Query
|
||||||
from django.db.models.sql.subqueries import * # NOQA
|
from django.db.models.sql.subqueries import * # NOQA
|
||||||
from django.db.models.sql.where import AND, OR
|
from django.db.models.sql.where import AND, OR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user