mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
Remove 'Implicit Async', Don't Await runtime.run() (#928)
* Revert to runPython instead of await runPythonAsync * "Implicit Coroutines" are no longer permitted in py-script tags * Tests added for the above * xfail test_importmap (See #938)
This commit is contained in:
@@ -12,7 +12,7 @@ export function make_PyScript(runtime: Runtime) {
|
||||
ensureUniqueId(this);
|
||||
const pySrc = await this.getPySrc();
|
||||
this.innerHTML = '';
|
||||
await pyExec(runtime, pySrc, this);
|
||||
pyExec(runtime, pySrc, this);
|
||||
}
|
||||
|
||||
async getPySrc(): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user