mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Give return stmts their own lines.
This commit is contained in:
parent
d40a92b3f0
commit
dd0e475297
1 changed files with 4 additions and 2 deletions
|
@ -743,8 +743,10 @@ class Parser:
|
|||
|
||||
def _comment_line(self, line):
|
||||
line = line.rstrip()
|
||||
if line: return '# '+line
|
||||
else: return '#'
|
||||
if line:
|
||||
return '# '+line
|
||||
else:
|
||||
return '#'
|
||||
|
||||
def _check_prompt_blank(self, lines, indent, lineno):
|
||||
for i, line in enumerate(lines):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue