]> granicus.if.org Git - python/commitdiff
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
authorTim Peters <tim.peters@gmail.com>
Fri, 13 Aug 2004 01:52:59 +0000 (01:52 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 13 Aug 2004 01:52:59 +0000 (01:52 +0000)
implemented, just what it does.

Lib/doctest.py

index a98df1abffced5f41cb55ff886484a9cfa84d939..fe2306467a0418284144af84a6180beef20f4186 100644 (file)
@@ -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):