summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-01-30 13:06:09 +0100
committerGitHub <noreply@github.com>2019-01-30 13:06:09 +0100
commit5a5c77d55dc85c7e6cf910243257e408887f412a (patch)
treefdc627f7932a974b6f52c95ca239cbaff6fcd167
parent738faf9da2a5cd03148a36375db80746c99c9623 (diff)
Fixed E117 and F405 flake8 warnings.
-rw-r--r--django/contrib/gis/gdal/envelope.py2
-rw-r--r--django/db/models/sql/__init__.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/gis/gdal/envelope.py b/django/contrib/gis/gdal/envelope.py
index f9cf1cfd1d..7921c978c8 100644
--- a/django/contrib/gis/gdal/envelope.py
+++ b/django/contrib/gis/gdal/envelope.py
@@ -126,7 +126,7 @@ class Envelope:
raise TypeError('Incorrect type of argument: %s' % type(args[0]))
elif len(args) == 2:
# 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:
# Individual parameters passed in.
return self.expand_to_include(args)
diff --git a/django/db/models/sql/__init__.py b/django/db/models/sql/__init__.py
index 31f45eb90d..762f8a5d62 100644
--- a/django/db/models/sql/__init__.py
+++ b/django/db/models/sql/__init__.py
@@ -1,5 +1,6 @@
from django.core.exceptions import EmptyResultSet
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.where import AND, OR