tirkarthi opened a new issue #10709: URL: https://github.com/apache/incubator-superset/issues/10709
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/ . They seemed to have been silenced in pylint but they raise deprecation warning in 3.7.0 and above. ### Expected results No warnings ### Actual results Deprecation warnings are raised #### How to reproduce the bug ``` find . -iname '*.py' | xargs -P4 -I{} python3.10 -Wall -m py_compile {} ./superset/models/helpers.py:49: DeprecationWarning: invalid escape sequence \] ",[ \t\r\n]+\]", "]", val # pylint: disable=anomalous-backslash-in-string ./superset/config.py:149: DeprecationWarning: invalid escape sequence \e "\2\1thisismyscretkey\1\2\e\y\y\h" # pylint: disable=anomalous-backslash-in-string ``` ### Environment (please complete the following information): - superset version: master branch - python version: 3.8 - node.js version: `node -v` - npm version: `npm -v` ### Checklist Make sure these boxes are checked before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
