summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-13 01:52:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-13 01:52:59 (GMT)
commit7ea48ddd4f324f014226c8647b8ac65254a3bed4 (patch)
treebd5ac06f9c8defd7018b0ba7cc9816a9b57df851 /Lib
parent2603960525f8921436893e3c416bc0321386bf22 (diff)
downloadcpython-7ea48ddd4f324f014226c8647b8ac65254a3bed4.zip
cpython-7ea48ddd4f324f014226c8647b8ac65254a3bed4.tar.gz
cpython-7ea48ddd4f324f014226c8647b8ac65254a3bed4.tar.bz2
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
implemented, just what it does.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/doctest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index a98df1a..fe23064 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):