summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py6
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):