Commit 5153a3bf authored by Maxime Lorant's avatar Maxime Lorant Committed by Tim Graham
Browse files

Fixed #25331 -- Removed trailing blank lines in docstrings.

parent d4b10a72
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ def static(prefix, view=serve, **kwargs):
    urlpatterns = [
        # ... the rest of your URLconf goes here ...
    ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

    """
    # No-op if not in debug mode or an non-local prefix
    if not settings.DEBUG or (prefix and '://' in prefix):
+0 −5
Original line number Diff line number Diff line
@@ -123,7 +123,6 @@ def get_deleted_objects(objs, opts, user, admin_site, using):

    Returns a nested list of strings suitable for display in the
    template with the ``unordered_list`` filter.

    """
    collector = NestedObjects(using=using)
    collector.collect(objs)
@@ -216,7 +215,6 @@ class NestedObjects(Collector):
    def nested(self, format_callback=None):
        """
        Return the graph as a nested list.

        """
        seen = set()
        roots = []
@@ -238,7 +236,6 @@ def model_format_dict(obj):
    typically for use with string formatting.

    `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance.

    """
    if isinstance(obj, (models.Model, models.base.ModelBase)):
        opts = obj._meta
@@ -260,7 +257,6 @@ def model_ngettext(obj, n=None):
    `obj` may be a `Model` instance, `Model` subclass, or `QuerySet` instance.
    If `obj` is a `QuerySet` instance, `n` is optional and the length of the
    `QuerySet` is used.

    """
    if isinstance(obj, models.query.QuerySet):
        if n is None:
@@ -443,7 +439,6 @@ def reverse_field_path(model, path):
    return (Group, "user__order").

    Final field must be a related model, not a data field.

    """
    reversed_path = []
    parent = model
+0 −1
Original line number Diff line number Diff line
@@ -220,7 +220,6 @@ class PasswordResetForm(forms.Form):
        This allows subclasses to more easily customize the default policies
        that prevent inactive users and users with unusable passwords from
        resetting their password.

        """
        active_users = get_user_model()._default_manager.filter(
            email__iexact=email, is_active=True)
+0 −1
Original line number Diff line number Diff line
@@ -239,7 +239,6 @@ class GIcon(object):
        infowindowanchor:
            The pixel coordinate relative to the top left corner of the icon
            image at which the info window is anchored to this icon.

    """
    def __init__(self, varname, image=None, iconsize=None,
                 shadow=None, shadowsize=None, iconanchor=None,
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ class Command(RunserverCommand):
        Returns the static files serving handler wrapping the default handler,
        if static files should be served. Otherwise just returns the default
        handler.

        """
        handler = super(Command, self).get_handler(*args, **options)
        use_static_handler = options.get('use_static_handler', True)
Loading