Skip to content
Snippets Groups Projects
Unverified Commit 39b109a9 authored by M. Zulqarnain's avatar M. Zulqarnain Committed by GitHub
Browse files

Fixed bad escape character (#24316)

As of Python 3.7, a backslash-character pair that is not a valid escape sequence now generates an error, earlier it was a deprecation warning.
parent 45d277be
Branches
Tags release-2020-07-09-11.20
No related merge requests found
......@@ -84,7 +84,7 @@ def to_latex(expr):
# sometimes get 'script(N)__B' or more complicated terms
expr_s = re.sub(
r'script([a-zA-Z0-9]+)',
'\\mathcal{\\1}',
r'\\mathcal{\\1}',
expr_s
)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment