8000 Escape backslashes to avoid "invalid escape sequence '\s'" syntax warnings by vivekmyers · Pull Request #221 · gpoore/pythontex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Escape backslashes to avoid "invalid escape sequence '\s'" syntax warnings #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vivekmyers
Copy link

No description provided.

@vEnhance
Copy link
vEnhance commented Feb 8, 2025

I think we can also make the docstring of _make_sympy_latex in pythontex_utils.py line 231 a raw string as well, since a similar warning is thrown for the \m escape sequence there.

--- /tmp/pythontex_utils.py	2025-02-08 10:55:10.424520558 -0500
+++ pythontex_utils.py	2025-02-08 10:53:11.096653520 -0500
@@ -228,7 +228,7 @@
             
     # Finally, create the actual interface to SymPy's LatexPrinter
     def _make_sympy_latex(self):
-        '''
+        r'''
         Create a context-aware interface to SymPy's LatexPrinter class.
         
         This is an interface to the LatexPrinter class, rather than 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0