summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-09 03:31:56 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-09 03:31:56 (GMT)
commitdd0e4752977b807ad02e0d47123ace3f2ef89edc (patch)
tree7601042d6f6553f6bc18f1979eccb2b29565bc8d /Lib/doctest.py
parentd40a92b3f09bcf755c86af59647ffb08c9082870 (diff)
downloadcpython-dd0e4752977b807ad02e0d47123ace3f2ef89edc.zip
cpython-dd0e4752977b807ad02e0d47123ace3f2ef89edc.tar.gz
cpython-dd0e4752977b807ad02e0d47123ace3f2ef89edc.tar.bz2
Give return stmts their own lines.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 23e1d84..bcda8a3 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -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):