From 16d70f5417b58f86e21d2c6f8bdfde07a0d5b7ad Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 11 Apr 2020 13:53:41 +0000 Subject: [PATCH] Fix deprecation warning regarding invalid escape sequences. --- pytest-profiling/pytest_profiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest-profiling/pytest_profiling.py b/pytest-profiling/pytest_profiling.py index 746bfc15..9917b6f5 100644 --- a/pytest-profiling/pytest_profiling.py +++ b/pytest-profiling/pytest_profiling.py @@ -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))