Skip to content

Commit

Permalink
Fix deprecation warning regarding invalid escape sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed Apr 11, 2020
1 parent fef336a commit 16d70f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest-profiling/pytest_profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def clean_filename(s):
forbidden_chars = set('/?<>\:*|"')
forbidden_chars = set(r'/?<>\:*|"')
return six.text_type("".join(c if c not in forbidden_chars and ord(c) < 127 else '_'
for c in s))

Expand Down

0 comments on commit 16d70f5

Please sign in to comment.