From 870b077270e9c6836cf429f491decd26a8bb1807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Mon, 7 Jul 2025 23:43:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(boards):=20=E4=BF=AE=E5=A4=8Dxpython?= =?UTF-8?q?=E4=B8=8B=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=A4=9A=20`"`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boards/default_src/python/python_generator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/default_src/python/python_generator.js b/boards/default_src/python/python_generator.js index da904b9b..a19bbea1 100644 --- a/boards/default_src/python/python_generator.js +++ b/boards/default_src/python/python_generator.js @@ -219,8 +219,8 @@ Python.scrubNakedValue = function (line) { */ Python.quote_ = function (string) { // Can't use goog.string.quote since % must also be escaped. - string = string.replace(/\\/g, '\\\\') - .replace(/\n/g, '\\\n'); + // string = string.replace(/\\/g, '\\\\') + // .replace(/\n/g, '\\\n'); // Follow the CPython behaviour of repr() for a non-byte string. var quote = '\'';