From: Tim Peters Date: Fri, 13 Aug 2004 01:52:59 +0000 (+0000) Subject: Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is X-Git-Tag: v2.4a3~268 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ea48ddd4f324f014226c8647b8ac65254a3bed4;p=thirdparty%2FPython%2Fcpython.git Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is implemented, just what it does. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index a98df1abffce..fe2306467a04 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -497,8 +497,8 @@ class DocTestParser: )*) ''', re.MULTILINE | re.VERBOSE) - # This regular expression matcher checks if a given string is a - # blank line or contains a single comment. + # A callable returning a true value iff its argument is a blank line + # or contains a single comment. _IS_BLANK_OR_COMMENT = re.compile(r'^[ ]*(#.*)?$').match def get_doctest(self, string, globs, name, filename, lineno):