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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd0e4752977b807ad02e0d47123ace3f2ef89edc;p=thirdparty%2FPython%2Fcpython.git Give return stmts their own lines. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index 23e1d843ba37..bcda8a3ee129 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):