Skip to content

Commit b45ba98

Browse files
alexwlchanagjohnson
authored andcommitted
Docstring/PEP 257 fixes for the comments app (#2820)
1 parent 3ef3c36 commit b45ba98

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

readthedocs/comments/backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99

1010
class DjangoStorage(StorageBackend):
11-
"""
12-
A Sphinx StorageBackend using Django.
13-
"""
11+
12+
"""A Sphinx StorageBackend using Django."""
13+
1414
def get_metadata(self, docname, moderator=None):
1515
ret_dict = {}
1616
for node in DocumentNode.objects.filter(page=docname):

readthedocs/comments/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def get_options(request):
6161
def get_metadata(request):
6262
"""
6363
Check for get_metadata
64+
6465
GET: page
6566
"""
6667
document = request.GET.get('page', '')
@@ -108,6 +109,7 @@ def serve_file(request, file):
108109
def has_node(request):
109110
"""
110111
Checks to see if a node exists.
112+
111113
GET: node_id - The node's ID to check
112114
"""
113115
node_id = request.GET.get('node_id', '')

0 commit comments

Comments
 (0)