From 39b109a9ad55d7dcdbee00ed9f5c69ee57aabcd2 Mon Sep 17 00:00:00 2001 From: "M. Zulqarnain" Date: Wed, 24 Jun 2020 18:23:11 +0500 Subject: [PATCH] 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. --- common/lib/symmath/symmath/formula.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/symmath/symmath/formula.py b/common/lib/symmath/symmath/formula.py index 355dbfd57d..e82d361d7c 100644 --- a/common/lib/symmath/symmath/formula.py +++ b/common/lib/symmath/symmath/formula.py @@ -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 )