Updated MicroPython (#1510)

Updated MicroPython
This commit is contained in:
Andrea Giammarchi
2023-06-06 11:42:23 +02:00
committed by GitHub
parent 339e40063a
commit 0cdbfbeb30
31 changed files with 8387 additions and 10061 deletions

View File

@@ -1,4 +1,4 @@
import { fetchPaths, stdio, writeFile } from "./_utils.js";
import { clean, fetchPaths, stdio, writeFile } from "./_utils.js";
const type = "micropython";
@@ -20,8 +20,8 @@ export default {
if (config.fetch) await fetchPaths(this, runtime, config.fetch);
return runtime;
},
run: (runtime, code) => runtime.runPython(code),
runAsync: (runtime, code) => runtime.runPythonAsync(code),
run: (runtime, code) => runtime.runPython(clean(code)),
runAsync: (runtime, code) => runtime.runPythonAsync(clean(code)),
runEvent(runtime, code, key) {
return this.run(
runtime,