Open tirkarthi opened 4 years ago
Deprecation warning are generated over invalid escape sequences. This can be fixed by using raw strings or escaping the literals again.
find . -iname '*.py' | xargs -P 4 -I{} python -Walways -m py_compile {} ./src/latex_envs/latex_envs.py:500: DeprecationWarning: invalid escape sequence \s newtext = re.sub('\\\\begin{verbatim}[\s]*?<matplotlib\.[\S ]*?>[\s]*?\\\\end{verbatim}', '', newtext, flags=re.M) # noqa ./src/latex_envs/latex_envs.py:501: DeprecationWarning: invalid escape sequence \s newtext = re.sub('\\\\begin{verbatim}[\s]*?<IPython\.core\.display[\S ]*?>[\s]*?\\\\end{verbatim}', '', newtext, flags=re.M) # noqa ./src/latex_envs/latex_envs.py:504: DeprecationWarning: invalid escape sequence \S newtext = re.sub('\\\\begin{center}\\\\rule{[\S\s]*?\\\\end{center}[\s]*?\S*\href{toc.ipynb}{Index}[\S\s ]*?.ipynb}{Next}', '', newtext, flags=re.M) # noqa ./src/latex_envs/latex_envs.py:522: DeprecationWarning: invalid escape sequence \s tex_text = re.search('begin{document}([\s\S]*?)\\\\end{document}', nb_text, flags=re.M) # noqa
Deprecation warning are generated over invalid escape sequences. This can be fixed by using raw strings or escaping the literals again.