]> granicus.if.org Git - python/commitdiff
Give return stmts their own lines.
authorTim Peters <tim.peters@gmail.com>
Mon, 9 Aug 2004 03:31:56 +0000 (03:31 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 9 Aug 2004 03:31:56 +0000 (03:31 +0000)
Lib/doctest.py

index 23e1d843ba378f7e88f400d68eb467a5827ff54a..bcda8a3ee1295d3ddbd5fc308ed8a2a2ebbb4f75 100644 (file)
@@ -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):