From: Serhiy Storchaka Date: Mon, 19 Aug 2013 19:59:31 +0000 (+0300) Subject: Issue #18647: A regular expression in the doctest module rewritten so that X-Git-Tag: v3.4.0a2~178^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ca66edbc50aa1b1e5d010f722e708756cce3214;p=python 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). --- diff --git a/Lib/doctest.py b/Lib/doctest.py index 5dbd3d459e..0b485f1f74 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 (?:(?![ ]*$) # Not a blank line (?![ ]*>>>) # Not a line starting with PS1 - .*$\n? # But any other line + .+$\n? # But any other line )*) ''', re.MULTILINE | re.VERBOSE)