Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings #159

Merged
merged 2 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 4 additions & 1 deletion pytest-verbose-parametrize/pytest_verbose_parametrize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from collections import Iterable
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
from six import string_types, text_type


Expand Down