From: Tim Peters Date: Mon, 9 Aug 2004 03:31:56 +0000 (+0000) Subject: Give return stmts their own lines. X-Git-Tag: v2.4a3~313 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd0e4752977b807ad02e0d47123ace3f2ef89edc;p=python Give return stmts their own lines. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index 23e1d843ba..bcda8a3ee1 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):