forked from platformio/platformio-core
Speedup PIO Home via internal calling of PIO Core CLI
This commit is contained in:
1 parent
500b3e08fe
commit
dfca7f0b68
8 files changed
+41
-31
No files matched your search
@@ -54,6 +54,8 @@ if PY2:
|
||||
return data
|
||||
|
||||
def dump_json_to_unicode(obj):
|
||||
if isinstance(obj, unicode):
|
||||
return obj
|
||||
return json.dumps(obj,
|
||||
encoding=get_filesystem_encoding(),
|
||||
ensure_ascii=False).encode("utf8")
|
||||
@@ -100,4 +102,6 @@ else:
|
||||
return data.encode()
|
||||
|
||||
def dump_json_to_unicode(obj):
|
||||
if isinstance(obj, string_types):
|
||||
return obj
|
||||
return json.dumps(obj, ensure_ascii=False)
|
||||
Reference in new issue
Block a user