mirror of
https://github.com/django/django.git
synced 2025-11-24 04:47:12 +00:00
Corrected many style guide violations that the newest version of flake8 catches
This commit is contained in:
parent
92dbf34286
commit
778ce245dd
39 changed files with 55 additions and 54 deletions
|
|
@ -204,7 +204,7 @@ class OGRGeometry(GDALBase):
|
|||
|
||||
def _set_coord_dim(self, dim):
|
||||
"Sets the coordinate dimension of this Geometry."
|
||||
if not dim in (2, 3):
|
||||
if dim not in (2, 3):
|
||||
raise ValueError('Geometry dimension must be either 2 or 3')
|
||||
capi.set_coord_dim(self.ptr, dim)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue