summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-19 20:04:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-19 20:04:52 (GMT)
commit0364134fc80f779381392ebe46d27dde909f0d1a (patch)
tree9061abcd3684116e1191d9abe317899863212a41 /Lib/doctest.py
parent34ecb118f116d4564a82bd16650d643f26ee989b (diff)
downloadcpython-0364134fc80f779381392ebe46d27dde909f0d1a.zip
cpython-0364134fc80f779381392ebe46d27dde909f0d1a.tar.gz
cpython-0364134fc80f779381392ebe46d27dde909f0d1a.tar.bz2
Issue #18647: A regular expression in the doctest module rewritten so that
determined minimal width of repeated subexpression is >0 (an empty line was not matched in any case).
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 3e563c6..efa07d7 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -564,7 +564,7 @@ class DocTestParser:
# Want consists of any non-blank lines that do not start with PS1.
(?P<want> (?:(?![ ]*$) # Not a blank line
(?![ ]*>>>) # Not a line starting with PS1
- .*$\n? # But any other line
+ .+$\n? # But any other line
)*)
''', re.MULTILINE | re.VERBOSE)