Skip to content

Commit

Permalink
replace all instances in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Aug 13, 2024
1 parent a36f89d commit ebf126a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cross_sync/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def visit_FunctionDef(self, node):
node.body[0].value, ast.Str
):
for key_word, replacement in self.replacements.items():
docstring = docstring.replace(f" {key_word} ", f" {replacement} ")
docstring = docstring.replace(key_word, replacement)
node.body[0].value.s = docstring
return self.generic_visit(node)

Expand Down

0 comments on commit ebf126a

Please sign in to comment.