Skip to content

Commit

Permalink
DocumentationExtraction: Conform to pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketDG committed Aug 14, 2016
1 parent 31b0410 commit edc67aa
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -81,7 +81,7 @@ def _extract_doc_comment_continuous(content, line, column, markers):
if pos == -1: if pos == -1:
return line, 0, doc_comment return line, 0, doc_comment
else: else:
doc_comment += content[line][pos+marker_len:] doc_comment += content[line][pos + marker_len:]


line += 1 line += 1


Expand Down Expand Up @@ -134,12 +134,13 @@ def _extract_doc_comment_standard(content, line, column, markers):
# If the first text occurrence is not the each-line marker # If the first text occurrence is not the each-line marker
# now we violate the doc-comment layout. # now we violate the doc-comment layout.
return None return None
doc_comment += content[line][each_line_pos+len(markers[1]):] doc_comment += content[line][each_line_pos + len(markers[1]):]
else: else:
# If no each-line marker found or it's located past the end marker: # If no each-line marker found or it's located past the end marker:
# extract no further and end the doc-comment. # extract no further and end the doc-comment.
if each_line_pos != -1 and each_line_pos + 1 < pos: if each_line_pos != -1 and each_line_pos + 1 < pos:
doc_comment += content[line][each_line_pos+len(markers[1]):pos] doc_comment += content[line][each_line_pos +
len(markers[1]):pos]


return line, pos + len(markers[2]), doc_comment return line, pos + len(markers[2]), doc_comment


Expand Down

0 comments on commit edc67aa

Please sign in to comment.