Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty class has branch == 2? #32

Closed
nedbat opened this issue Nov 15, 2009 · 2 comments
Closed

Empty class has branch == 2? #32

nedbat opened this issue Nov 15, 2009 · 2 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Nov 15, 2009

@garybernhardt reports (in a tweet!): "garybernhardt @nedbat A file with just "class Foo:\n pass" has Branch=2. Feels like a bug; is it one?"


@nedbat
Copy link
Owner Author

nedbat commented Nov 15, 2009

In the compiled code, line 1 can go next to two different places: line 2 or leave the file. That's why there are two branch possibilities in the code. But there's conceptually no branch here, so we should figure out a way to considering it as a branch.

@nedbat
Copy link
Owner Author

nedbat commented Nov 17, 2009

Fixed in <<changeset f9aa1a4b1d0a (bb)>>.

@nedbat nedbat closed this as completed Nov 17, 2009
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant