Petr Viktorin e6c9800645 py/compile: Allow 'return' outside function in minimal builds.
A 'return' statement on module/class level is not correct Python, but
nothing terribly bad happens when it's allowed.  So remove the check unless
MICROPY_CPYTHON_COMPAT is on.

This is similar to MicroPython's treatment of 'import *' in functions
(except 'return' has unsurprising behavior if it's allowed).
2020-02-06 00:41:55 +11:00
..
2020-01-12 13:03:57 +11:00
2019-11-21 12:04:53 +11:00
2019-11-21 12:04:53 +11:00
2020-01-12 13:03:57 +11:00