Deprecation warning due to invalid escape sequences.
Closed this issue · 1 comments
tirkarthi commented
Deprecation warning due to invalid escape sequences. Using raw strings or escaping them again helps in resolving this. Check https://github.com/asottile/pyupgrade/ for automatic fix of this.
find . -iname '*.py' | grep -Ev 'rdf4|tool' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./tests/acceptance/test_checkbox.py:13: DeprecationWarning: invalid escape sequence \[
self.sut.expect("{'interests': \['Computers', 'Books'\]}.*", timeout=1) # noqa
./tests/acceptance/test_checkbox.py:21: DeprecationWarning: invalid escape sequence \[
"{'interests': \['Computers', 'Books', 'Science'\]}.*", timeout=1) # noqa
./tests/acceptance/test_checkbox.py:31: DeprecationWarning: invalid escape sequence \[
"{'interests': \['Computers', 'Books', 'Science', 'Nature'\]}.*", # noqa
./tests/acceptance/test_checkbox.py:39: DeprecationWarning: invalid escape sequence \[
self.sut.expect("{'interests': \['Books', 'Computers'\]}.*", timeout=1) # noqa
./tests/acceptance/test_checkbox.py:47: DeprecationWarning: invalid escape sequence \[
"{'interests': \['Computers', 'Books', 'Science'\]}.*", # noqa
./tests/acceptance/test_checkbox.py:55: DeprecationWarning: invalid escape sequence \[
self.sut.expect("{'interests': \['Computers'\]}.*", timeout=1) # noqa
./tests/acceptance/test_checkbox.py:63: DeprecationWarning: invalid escape sequence \[
"{'interests': \['Computers', 'Books', 'History'\]}.*", # noqa
./examples/text.py:13: DeprecationWarning: invalid escape sequence \+
if not re.match('\+?\d[\d ]+\d', current):
Cube707 commented
can not reproduce. Probably no longer relavant