Fix whitespace in imports

This commit is contained in:
Ryan P Kilby 2017-11-25 21:10:30 -05:00
parent 7b58a2c124
commit 5c19652080
5 changed files with 3 additions and 3 deletions

View File

@ -10,6 +10,7 @@ from django.utils import six
from django.utils.encoding import force_text, iri_to_uri from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import escape, format_html, smart_urlquote from django.utils.html import escape, format_html, smart_urlquote
from django.utils.safestring import SafeData, mark_safe from django.utils.safestring import SafeData, mark_safe
from rest_framework.compat import apply_markdown, pygments_highlight from rest_framework.compat import apply_markdown, pygments_highlight
from rest_framework.renderers import HTMLFormRenderer from rest_framework.renderers import HTMLFormRenderer
from rest_framework.utils.urls import replace_query_param from rest_framework.utils.urls import replace_query_param

View File

@ -19,7 +19,6 @@ from rest_framework.utils.representation import smart_repr
# Robust filter and exist implementations. Ensures that queryset.exists() for # Robust filter and exist implementations. Ensures that queryset.exists() for
# an invalid value returns `False`, rather than raising an error. # an invalid value returns `False`, rather than raising an error.
# Refs https://github.com/encode/django-rest-framework/issues/3381 # Refs https://github.com/encode/django-rest-framework/issues/3381
def qs_exists(queryset): def qs_exists(queryset):
try: try:
return queryset.exists() return queryset.exists()

View File

@ -1,4 +1,5 @@
from django.conf import settings from django.conf import settings
from tests import importable from tests import importable

View File

@ -33,9 +33,9 @@ indented
}] }]
```""" ```"""
# If markdown is installed we also test it's working # If markdown is installed we also test it's working
# (and that our wrapped forces '=' to h2 and '-' to h3) # (and that our wrapped forces '=' to h2 and '-' to h3)
MARKED_DOWN_HILITE = """ MARKED_DOWN_HILITE = """
<div class="highlight"><pre><span></span><span \ <div class="highlight"><pre><span></span><span \
class="p">[{</span><br /> <span class="nt">&quot;alpha&quot;</span><span\ class="p">[{</span><br /> <span class="nt">&quot;alpha&quot;</span><span\

View File

@ -10,7 +10,6 @@ from tests.test_multitable_inheritance import ChildModel
# Regression test for #4290 # Regression test for #4290
class ChildAssociatedModel(RESTFrameworkModel): class ChildAssociatedModel(RESTFrameworkModel):
child_model = models.OneToOneField(ChildModel, on_delete=models.CASCADE) child_model = models.OneToOneField(ChildModel, on_delete=models.CASCADE)
child_name = models.CharField(max_length=100) child_name = models.CharField(max_length=100)