浏览代码

fix a bug

blueloveTH 2 年之前
父节点
当前提交
bb75341c49
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pocketpy.h

+ 1 - 1
src/pocketpy.h

@@ -979,7 +979,7 @@ inline void init_builtins(VM* _vm) {
         for(auto& item : self.items()){
             if(!first) ss << ", ";
             first = false;
-            Str key = CAST(Str&, item.first).escape();
+            Str key = CAST(Str&, item.first).escape(false);
             Str value = CAST(Str&, vm->py_json(item.second));
             ss << key << ": " << value;
         }