diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-09 03:31:56 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-09 03:31:56 (GMT) |
commit | dd0e4752977b807ad02e0d47123ace3f2ef89edc (patch) | |
tree | 7601042d6f6553f6bc18f1979eccb2b29565bc8d /Lib | |
parent | d40a92b3f09bcf755c86af59647ffb08c9082870 (diff) | |
download | cpython-dd0e4752977b807ad02e0d47123ace3f2ef89edc.zip cpython-dd0e4752977b807ad02e0d47123ace3f2ef89edc.tar.gz cpython-dd0e4752977b807ad02e0d47123ace3f2ef89edc.tar.bz2 |
Give return stmts their own lines.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/doctest.py | 6 |
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): |