From 06ada512d95adcc7d27aea63d0569d620cc89741 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Tue, 11 Nov 2014 10:49:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F?= =?UTF-8?q?=20replace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/calculate/lib/cl_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/calculate/lib/cl_template.py b/pym/calculate/lib/cl_template.py index 62e0d5c..660e970 100644 --- a/pym/calculate/lib/cl_template.py +++ b/pym/calculate/lib/cl_template.py @@ -3365,7 +3365,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction): textArgv = term[1:-1] for replTerm in replTerms: textArgv = textArgv.replace(*replTerm) - textArgv = re.sub(r'\\x(\d\d)', + textArgv = re.sub(r'\\x([0-9a-fA-F]{2})', lambda x:chr(int(x.group(1),16)),textArgv) listArgv.append(textArgv) elif term.startswith("'") and term.endswith("'"):