-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Python's IndentationError issue in most cases
Insert a `#` character at the beginning of blank lines above indention line, to meet the REPL’s limitation. Now the below Python code will work in Codi: ``` class Test(object): def __init__(self): pass def an_empty_line_above_this(self): return ‘No worry about the blank lines’ if __name__ == ‘__main__’: print(‘blank lines are cool, now PEP8 lint stop warning about it\’s absence.’) ```
- Loading branch information
1 parent
140b5aa
commit e2aa007
Showing
2 changed files
with
3 additions
and
13 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