Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
57ebe1b2
Commit
57ebe1b2
authored
May 06, 2015
by
Damien George
Browse files
unix-cpy: Fix adjustment of stack size when leaving exception handler.
Also remove __debug__ from one of the bytecode tests.
parent
28076f3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/emitcpy.c
View file @
57ebe1b2
...
...
@@ -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
)
{
...
...
tests/bytecode/pylib-tests/compileall.py
View file @
57ebe1b2
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment