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

[1.8.x] Fixed E265 comment style

Backport of db77915c from master
parent 232a1d29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ class Apps(object):
            for model in self.get_models(include_auto_created=True):
                model._meta._expire_cache()

    ### DEPRECATED METHODS GO BELOW THIS LINE ###
    # ### DEPRECATED METHODS GO BELOW THIS LINE ###

    def load_app(self, app_name):
        """
+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
@@ -23,7 +23,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
@@ -428,7 +428,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
@@ -57,7 +57,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:
Loading