Kaydet (Commit) 7ea48ddd authored tarafından Tim Peters's avatar Tim Peters

Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is

implemented, just what it does.
üst 26039605
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment