Open PeterParker opened 2 days ago
I believe changing the quoted line to the following will fix the warning:
forbidden_chars = set('/?<>\\:*|"')
I.e., the backslash needs to be escaped with a backslash.
Or, use a raw string literal:
forbidden_chars = set(r'/?<>\:*|"')
I'm seeing the following warning in Python 3.12, which does not like the
\:
escape sequence: