Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 1d3ea7b

Browse files
committed
Fixed pep8 issue.
1 parent 20edb2c commit 1d3ea7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pydocstyle/checker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,10 @@ def check_triple_double_quotes(self, definition, docstring):
283283
else:
284284
regex = re(r'[uU]?[rR]?"""[^"].*')
285285

286-
illegal_matcher = re(r"""[uU]?[rR]?("+|'+).*""")
287286
if not regex.match(docstring):
288-
return violations.D300(illegal_matcher.match(docstring).group(1))
287+
illegal_matcher = re(r"""[uU]?[rR]?("+|'+).*""")
288+
illegal_quotes = illegal_matcher.match(docstring).group(1)
289+
return violations.D300(illegal_quotes)
289290

290291
@check_for(Definition)
291292
def check_backslashes(self, definition, docstring):

0 commit comments

Comments
 (0)