Skip to content

Commit

Permalink
Remove explicit normalize_string_quotes after docstring fixes
Browse files Browse the repository at this point in the history
`visit_STRING` finishes by calling `visit_default`, which already
deals with calling `normalize_string_quotes` -- and correctly checks
for `self.normalize_strings` first, which this callsite does not.
  • Loading branch information
alexmv committed May 22, 2020
1 parent 3f8e019 commit 45a7168
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,6 @@ def visit_STRING(self, leaf: Leaf) -> Iterator[Line]:
rf"\1\\{quote_char}", docstring
)
leaf.value = leaf.value[0:3] + docstring + leaf.value[-3:]
normalize_string_quotes(leaf)

yield from self.visit_default(leaf)

Expand Down

0 comments on commit 45a7168

Please sign in to comment.