mirror of
https://github.com/python/cpython
synced 2024-10-14 09:58:30 +00:00
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
implemented, just what it does.
This commit is contained in:
parent
2603960525
commit
7ea48ddd4f
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue