mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 05:30:16 +00:00
fix CI
This commit is contained in:
parent
744418df0d
commit
7ae7e0b50d
@ -127,7 +127,7 @@ void add_module_cjson(VM* vm){
|
||||
|
||||
const Str& expr = CAST(Str&, args[0]);
|
||||
|
||||
cJSON *json = cJSON_Parse(expr.c_str());
|
||||
cJSON *json = cJSON_ParseWithLength(expr.data, expr.size);
|
||||
|
||||
PyObject* output = convert_cjson_to_python_object(json, vm);
|
||||
cJSON_Delete(json);
|
||||
|
||||
@ -14,7 +14,11 @@ a = {
|
||||
'h': False
|
||||
}
|
||||
|
||||
try:
|
||||
import cjson as json
|
||||
print('[INFO] cjson is used')
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
_j = json.dumps(a)
|
||||
_a = json.loads(_j)
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
try:
|
||||
import cjson as json
|
||||
print('[INFO] cjson is used')
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
_2489KB = 'WorldMap_GridVania_layout.ldtk'
|
||||
_1093KB = 'WorldMap_Free_layout.ldtk'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user