Skip to content

Commit 35ca9db

Browse files
committed
Fixed build errors
1 parent faa36c5 commit 35ca9db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework_docs/api_endpoint.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from django.contrib.admindocs.views import simplify_regex
44
from django.utils.encoding import force_str
55
from rest_framework.serializers import BaseSerializer
6-
76
from django.utils.safestring import mark_safe
87
from docutils import core
98

9+
1010
class ApiEndpoint(object):
1111

1212
def __init__(self, pattern, parent_pattern=None, drf_router=None, docstring_format=None):
@@ -71,7 +71,7 @@ def __get_allowed_methods__(self):
7171

7272
def __get_docstring__(self):
7373
description = inspect.getdoc(self.callback)
74-
if (self.docstring_format == "rst"): # reStructuredText
74+
if (self.docstring_format == "rst"): # reStructuredText
7575
parts = core.publish_parts(source=description, writer_name="html")
7676
html = parts["body_pre_docinfo"] + parts["fragment"]
7777
description = mark_safe(html)

0 commit comments

Comments
 (0)