Open tirkarthi opened 3 years ago
Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/
find . -iname '*.py' | grep -Ev 'vendor|example|doc|sphinx' | xargs -P4 -I{} python3.8 -Wall -m py_compile {} ./tests/test_cors.py:199: DeprecationWarning: invalid escape sequence \. cors = CORS(allow_origins_regex='rack.*\.com') ./tests/test_cors.py:223: DeprecationWarning: invalid escape sequence \. allow_origins_regex='rack.*\.com' ./tests/test_cors.py:387: DeprecationWarning: invalid escape sequence \. allow_credentials_origins_regex='.*\.rackspace\..*' ./tests/test_cors.py:401: DeprecationWarning: invalid escape sequence \. allow_credentials_origins_regex='.*\.rackspace\..*'
Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/