unix-cpy: Fix adjustment of stack size when leaving exception handler.

Also remove __debug__ from one of the bytecode tests.
upip-bootstrap
Damien George 2015-05-06 16:46:21 +01:00
parent 28076f3d4b
commit 57ebe1b27d
2 changed files with 2 additions and 2 deletions

View File

@ -782,7 +782,7 @@ STATIC void emit_cpy_start_except_handler(emit_t *emit) {
}
STATIC void emit_cpy_end_except_handler(emit_t *emit) {
emit_cpy_adjust_stack_size(emit, -5); // stack adjust
emit_cpy_adjust_stack_size(emit, -2); // stack adjust
}
STATIC void emit_cpy_load_const_verbatim_strn(emit_t *emit, const char *str, mp_uint_t len) {

View File

@ -88,7 +88,7 @@ def compile_file(fullname, ddir=None, force=False, rx=None, quiet=False,
return success
if os.path.isfile(fullname):
if legacy:
cfile = fullname + ('c' if __debug__ else 'o')
cfile = fullname + 'c'
else:
if optimize >= 0:
cfile = imp.cache_from_source(fullname,