From 0364134fc80f779381392ebe46d27dde909f0d1a Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 19 Aug 2013 23:04:52 +0300 Subject: 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). --- Lib/doctest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (?:(?![ ]*$) # Not a blank line (?![ ]*>>>) # Not a line starting with PS1 - .*$\n? # But any other line + .+$\n? # But any other line )*) ''', re.MULTILINE | re.VERBOSE) -- cgit v0.12