summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-19 19:59:31 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-19 19:59:31 (GMT)
commit1ca66edbc50aa1b1e5d010f722e708756cce3214 (patch)
tree4263beaa18ec70ef2cf3b0b37785251706f7f0f4 /Lib/doctest.py
parent9d96542b6d1f5c470a60f21d0d8b4ee3edcb17f9 (diff)
downloadcpython-1ca66edbc50aa1b1e5d010f722e708756cce3214.zip
cpython-1ca66edbc50aa1b1e5d010f722e708756cce3214.tar.gz
cpython-1ca66edbc50aa1b1e5d010f722e708756cce3214.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 5dbd3d4..0b485f1 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -553,7 +553,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)