summaryrefslogtreecommitdiff
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-19 23:04:33 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-19 23:04:33 +0300
commit75674ae8ddc9ab83200919de6f75ead695be9bcb (patch)
tree941b39d662a41d0f0b7357bebff21eee3c31eb1d /Lib/doctest.py
parent20c3dd25c01d0154c611f5acea72a48f3e09b4d7 (diff)
parent1ca66edbc50aa1b1e5d010f722e708756cce3214 (diff)
downloadcpython-git-75674ae8ddc9ab83200919de6f75ead695be9bcb.tar.gz
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 1c94e75058..a26c040a9d 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -557,7 +557,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)