##// END OF EJS Templates
Fix improper non-SyntaxError in return outside of function....
Fix improper non-SyntaxError in return outside of function. The current depth was not properly tracked, which let to false-negative on `SyntaxError`s Closes #11638

File last commit:

r22618:12e05563
r24964:5c5f6009
Show More
bad_all.py
14 lines | 206 B | text/x-python | PythonLexer
"""Module with bad __all__
To test https://github.com/ipython/ipython/issues/9678
"""
def evil():
pass
def puppies():
pass
__all__ = [evil, # Bad
'puppies', # Good
]