summaryrefslogtreecommitdiff
path: root/django/contrib/gis/geos/polygon.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-03 10:08:55 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-03 10:08:55 -0800
commitc347f78cc1b2a06958f692f0622deceac534dc6b (patch)
treec91fa9a8b5843249e2e8e6165848aae0c9fb4b17 /django/contrib/gis/geos/polygon.py
parent7288e1b02b2504b1694fe14df2d81e6a354c5610 (diff)
downloaddjango-c347f78cc1b2a06958f692f0622deceac534dc6b.tar.gz
Fixed all E226 violations
Diffstat (limited to 'django/contrib/gis/geos/polygon.py')
-rw-r--r--django/contrib/gis/geos/polygon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/gis/geos/polygon.py b/django/contrib/gis/geos/polygon.py
index ef8eb27de5..f617f1fe76 100644
--- a/django/contrib/gis/geos/polygon.py
+++ b/django/contrib/gis/geos/polygon.py
@@ -134,7 +134,7 @@ class Polygon(GEOSGeometry):
return capi.get_extring(self.ptr)
else:
# Getting the interior ring, have to subtract 1 from the index.
- return capi.get_intring(self.ptr, index-1)
+ return capi.get_intring(self.ptr, index - 1)
def _get_single_external(self, index):
return GEOSGeometry(capi.geom_clone(self._get_single_internal(index)), srid=self.srid)
@@ -170,6 +170,6 @@ class Polygon(GEOSGeometry):
@property
def kml(self):
"Returns the KML representation of this Polygon."
- inner_kml = ''.join("<innerBoundaryIs>%s</innerBoundaryIs>" % self[i+1].kml
+ inner_kml = ''.join("<innerBoundaryIs>%s</innerBoundaryIs>" % self[i + 1].kml
for i in xrange(self.num_interior_rings))
return "<Polygon><outerBoundaryIs>%s</outerBoundaryIs>%s</Polygon>" % (self[0].kml, inner_kml)