commit | dd0e4752977b807ad02e0d47123ace3f2ef89edc | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Aug 09 03:31:56 2004 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Aug 09 03:31:56 2004 +0000 |
tree | 7601042d6f6553f6bc18f1979eccb2b29565bc8d | |
parent | d40a92b3f09bcf755c86af59647ffb08c9082870 [diff] |
Give return stmts their own lines.
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 @@ 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):