diff options
| author | Christopher Medrela <chris.medrela@gmail.com> | 2013-11-26 10:43:46 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-11-28 08:50:11 -0500 |
| commit | 7477a4ffde4781f4e84503e66d7f775074089887 (patch) | |
| tree | d3bbeaa6e808deb92c0fb86cf4ae8163539d84b1 /django/contrib/gis/db | |
| parent | d1df395f3ae768e495a105db2f85352c44ba1c28 (diff) | |
Fixed E125 pep8 warnings
Diffstat (limited to 'django/contrib/gis/db')
| -rw-r--r-- | django/contrib/gis/db/backends/postgis/operations.py | 4 | ||||
| -rw-r--r-- | django/contrib/gis/db/models/sql/where.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/db/backends/postgis/operations.py b/django/contrib/gis/db/backends/postgis/operations.py index 86608afa35..40ca09f0fa 100644 --- a/django/contrib/gis/db/backends/postgis/operations.py +++ b/django/contrib/gis/db/backends/postgis/operations.py @@ -369,7 +369,7 @@ class PostGISOperations(DatabaseOperations, BaseSpatialOperations): dist_param = value if (not geography and geodetic and lookup_type != 'dwithin' - and option == 'spheroid'): + and option == 'spheroid'): # using distance_spheroid requires the spheroid of the field as # a parameter. return [f._spheroid, dist_param] @@ -467,7 +467,7 @@ class PostGISOperations(DatabaseOperations, BaseSpatialOperations): def two_to_three(np): return np >= 2 and np <= 3 if (lookup_type in self.distance_functions and - lookup_type != 'dwithin'): + lookup_type != 'dwithin'): return two_to_three(num_param) else: return exactly_two(num_param) diff --git a/django/contrib/gis/db/models/sql/where.py b/django/contrib/gis/db/models/sql/where.py index 3a504274b6..1e750ebd89 100644 --- a/django/contrib/gis/db/models/sql/where.py +++ b/django/contrib/gis/db/models/sql/where.py @@ -39,7 +39,7 @@ class GeoWhereNode(WhereNode): if isinstance(data, (list, tuple)): obj, lookup_type, value = data if (isinstance(obj, Constraint) and - isinstance(obj.field, GeometryField)): + isinstance(obj.field, GeometryField)): data = (GeoConstraint(obj), lookup_type, value) return super(GeoWhereNode, self)._prepare_data(data) |
