mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +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):
|
def _comment_line(self, line):
|
||||||
line = line.rstrip()
|
line = line.rstrip()
|
||||||
if line: return '# '+line
|
if line:
|
||||||
else: return '#'
|
return '# '+line
|
||||||
|
else:
|
||||||
|
return '#'
|
||||||
|
|
||||||
def _check_prompt_blank(self, lines, indent, lineno):
|
def _check_prompt_blank(self, lines, indent, lineno):
|
||||||
for i, line in enumerate(lines):
|
for i, line in enumerate(lines):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue