-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of using the tokenizer to find the end of the "class ... :", i.e. before the begining of the class body, use the information from the node itself. This works because: * node.lineno will contain the line where the "class ... :" is, even if the class has comments or decorators above * node.body[0].lineno contains the line where the body begins
- Loading branch information
Showing
2 changed files
with
33 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters