Skip to content

Commit 35a3367

Browse files
fix pep8
1 parent 1159466 commit 35a3367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=None):
582582
# in pat, still take it as a literal, and raise the Future warning
583583
if regex is None and len(pat) == 1 and re.findall(r"\W", pat):
584584
warnings.warn("'%s' is interpreted as a literal in " % pat +
585-
"default, not regex. It will change in the future."
586-
, FutureWarning)
585+
"default, not regex. It will change in the future.",
586+
FutureWarning)
587587
f = lambda x: x.replace(pat, repl, n)
588588

589589
return _na_map(f, arr)

0 commit comments

Comments
 (0)