Commit db77915c authored by Collin Anderson's avatar Collin Anderson Committed by Tim Graham
Browse files

Fixed E265 comment style

parent eb45a295
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ class GeometryField(GeoSelectFormatMixin, Field):
            self._get_srid_info(connection)
        return self._units_name

    ### Routines specific to GeometryField ###
    # ### Routines specific to GeometryField ###
    def geodetic(self, connection):
        """
        Returns true if this field's SRID corresponds with a coordinate
@@ -236,7 +236,7 @@ class GeometryField(GeoSelectFormatMixin, Field):
        else:
            return gsrid

    ### Routines overloaded from Field ###
    # ### Routines overloaded from Field ###
    def contribute_to_class(self, cls, name, **kwargs):
        super(GeometryField, self).contribute_to_class(cls, name, **kwargs)

+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ from django.utils.deprecation import RemovedInDjango20Warning
class GeoQuerySet(QuerySet):
    "The Geographic QuerySet."

    ### GeoQuerySet Methods ###
    # ### GeoQuerySet Methods ###
    def area(self, tolerance=0.05, **kwargs):
        """
        Returns the area of the geographic field in an `area` attribute on
@@ -426,7 +426,7 @@ class GeoQuerySet(QuerySet):
        )
        return self._spatial_aggregate(aggregates.Union, **kwargs)

    ### Private API -- Abstracted DRY routines. ###
    # ### Private API -- Abstracted DRY routines. ###
    def _spatial_setup(self, att, desc=None, field_name=None, geo_field_type=None):
        """
        Performs set up for executing the spatial function.
+2 −2
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ class GeoFeedMixin(object):
                        raise ValueError('Geometry type "%s" not supported.' % geom.geom_type)


### SyndicationFeed subclasses ###
# ### SyndicationFeed subclasses ###
class GeoRSSFeed(Rss201rev2Feed, GeoFeedMixin):
    def rss_attributes(self):
        attrs = super(GeoRSSFeed, self).rss_attributes()
@@ -127,7 +127,7 @@ class W3CGeoFeed(Rss201rev2Feed, GeoFeedMixin):
        self.add_georss_element(handler, self.feed, w3c_geo=True)


### Feed subclass ###
# ### Feed subclass ###
class Feed(BaseFeed):
    """
    This is a subclass of the `Feed` from `django.contrib.syndication`.
+0 −1
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ from django.utils.six.moves import range
class DataSource(GDALBase):
    "Wraps an OGR Data Source object."

    #### Python 'magic' routines ####
    def __init__(self, ds_input, ds_driver=False, write=False, encoding='utf-8'):
        # The write flag.
        if write:
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
"""


#### GDAL & SRS Exceptions ####
# #### GDAL & SRS Exceptions ####
class GDALException(Exception):
    pass

@@ -27,7 +27,7 @@ class OGRIndexError(GDALException, KeyError):
    """
    silent_variable_failure = True

#### GDAL/OGR error checking codes and routine ####
# #### GDAL/OGR error checking codes and routine ####

# OGR Error Codes
OGRERR_DICT = {
Loading