corydolphin / flask-cors

Cross Origin Resource Sharing ( CORS ) support for Flask
https://flask-cors.corydolphin.com/
MIT License
877 stars 137 forks source link

Deprecation warning due to invalid escape sequences in Python 3.8 #259

Closed tirkarthi closed 3 years ago

tirkarthi commented 4 years ago
./tests/extension/test_app_extension.py:42: DeprecationWarning: invalid escape sequence \w
  re.compile('/test_compiled_subdomain_\w*'): {
./tests/extension/test_app_extension.py:43: DeprecationWarning: invalid escape sequence \d
  'origins': re.compile("http://example\d+.com")
./tests/core/helper_tests.py:88: DeprecationWarning: invalid escape sequence \w
  self.assertTrue(probably_regex("http://[\w].example.com"))
./tests/core/helper_tests.py:89: DeprecationWarning: invalid escape sequence \w
  self.assertTrue(probably_regex("http://\w+.example.com")