| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | # Fake python wrapper for emscripten_* C functions for native testing | |
| 2 | 2 | ||
| 3 | - # Copyright (C) 2018 Sylvain Beucler | ||
| 3 | + # Copyright (C) 2018, 2020 Sylvain Beucler | ||
| 4 | 4 | ||
| 5 | 5 | # Copying and distribution of this file, with or without modification, | |
| 6 | 6 | # are permitted in any medium without royalty provided the copyright | |
@@ -13,7 +13,7 @@ import sys | |||
| 13 | 13 | sys.platform = 'emscripten' | |
| 14 | 14 | ||
| 15 | 15 | def set_main_loop(py_function, fps, simulate_infinite_loop): | |
| 16 | - print "def: set_main_loop", py_function, fps, simulate_infinite_loop | ||
| 16 | + print("def: set_main_loop", py_function, fps, simulate_infinite_loop) | ||
| 17 | 17 | if not simulate_infinite_loop: | |
| 18 | 18 | # TODO: simulate browser loop in another Python script? | |
| 19 | 19 | pass | |
@@ -30,7 +30,7 @@ def async_call(func, arg, millis): | |||
| 30 | 30 | py_function(py_arg) | |
| 31 | 31 | ||
| 32 | 32 | def exit_with_live_runtime(): | |
| 33 | - print "exit_with_live_runtime" | ||
| 33 | + print("exit_with_live_runtime") | ||
| 34 | 34 | ||
| 35 | 35 | def sleep(ms): | |
| 36 | 36 | time.sleep(ms/1000.0) | |
@@ -39,8 +39,8 @@ def sleep_with_yield(ms): | |||
| 39 | 39 | sleep(ms) | |
| 40 | 40 | ||
| 41 | 41 | def run_script(script): | |
| 42 | - print "run_script" | ||
| 43 | - print '\n'.join([" "+l for l in script.splitlines()]) | ||
| 42 | + print("run_script") | ||
| 43 | + print('\n'.join([" "+l for l in script.splitlines()])) | ||
| 44 | 44 | ||
| 45 | 45 | def syncfs(): | |
| 46 | - print "syncfs" | ||
| 46 | + print("syncfs") | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,9 @@ | |||
| 1 | + # Fake python wrapper for emscripten_fetch* C functions for native testing | ||
| 2 | + | ||
| 3 | + # Copyright (C) 2020 Sylvain Beucler | ||
| 4 | + | ||
| 5 | + # Copying and distribution of this file, with or without modification, | ||
| 6 | + # are permitted in any medium without royalty provided the copyright | ||
| 7 | + # notice and this notice are preserved. This file is offered as-is, | ||
| 8 | + # without any warranty. | ||
| 9 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments