fix(boards): 修复xpython下字符串多 "
This commit is contained in:
@@ -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 = '\'';
|
||||
|
||||
Reference in New Issue
Block a user