Skip to content

Commit ebf126a

Browse files
committed
replace all instances in docstrings
1 parent a36f89d commit ebf126a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.cross_sync/transformers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def visit_FunctionDef(self, node):
7575
node.body[0].value, ast.Str
7676
):
7777
for key_word, replacement in self.replacements.items():
78-
docstring = docstring.replace(f" {key_word} ", f" {replacement} ")
78+
docstring = docstring.replace(key_word, replacement)
7979
node.body[0].value.s = docstring
8080
return self.generic_visit(node)
8181

0 commit comments

Comments
 (0)