Skip to content

Conversation

adiroiban
Copy link
Contributor

Problem

See: https://bugs.launchpad.net/pyflakes/+bug/1332451

The code on master was already ignoring this error and no longer crashing.

Changes

Create a dedicated errror but not sure if this is needed as it is already raised by python as a syntax error.

Check that changes make sense of just close this pull request and the Launchpad ticket.

Thanks!

@bitglue
Copy link
Member

bitglue commented Feb 14, 2015

Looks good, thanks.

The reason these errors aren't already caught is that pyflakes parses, but does not compile the code. See #8.

bitglue added a commit that referenced this pull request Feb 14, 2015
[#1332451] Add an error for return outside of function.
@bitglue bitglue merged commit 8f539df into PyCQA:master Feb 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants