Corrected many style guide violations that the newest version of flake8 catches

This commit is contained in:
Alex Gaynor 2014-03-30 12:11:05 -07:00
parent 92dbf34286
commit 778ce245dd
39 changed files with 55 additions and 54 deletions

View file

@ -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)