mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
up
This commit is contained in:
parent
5faf7bbc6c
commit
e81c1c4491
@ -33,10 +33,10 @@ def f1():
|
||||
a = {1: 2, 3: 4}
|
||||
x = a[0]
|
||||
except A:
|
||||
print('<?>')
|
||||
exit(1)
|
||||
except B:
|
||||
print('<?>')
|
||||
print('<?>')
|
||||
exit(1)
|
||||
exit(1)
|
||||
|
||||
try:
|
||||
f1()
|
||||
|
@ -29,11 +29,6 @@ function term_init() {
|
||||
switch (e) {
|
||||
case '\r': // Enter
|
||||
term.write("\r\n");
|
||||
if(command == 'exit()'){
|
||||
stopped = true;
|
||||
term.write("Bye!\r\n");
|
||||
break;
|
||||
}
|
||||
need_more_lines = Module.ccall('pkpy_repl_input', 'bool', ['number', 'string'], [repl, command]);
|
||||
command = '';
|
||||
term.write(need_more_lines ? "... " : ">>> ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user