mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21266 -- Fixed E201,E202 pep8 warnings.
This commit is contained in:
committed by
Tim Graham
parent
42a67ec1cd
commit
83b9bfea44
@@ -613,10 +613,10 @@ class DocTestParser:
|
||||
self._parse_example(m, name, lineno)
|
||||
# Create an Example, and add it to the list.
|
||||
if not self._IS_BLANK_OR_COMMENT(source):
|
||||
output.append( Example(source, want, exc_msg,
|
||||
output.append(Example(source, want, exc_msg,
|
||||
lineno=lineno,
|
||||
indent=min_indent+len(m.group('indent')),
|
||||
options=options) )
|
||||
options=options))
|
||||
# Update lineno (lines inside this example)
|
||||
lineno += string.count('\n', m.start(), m.end())
|
||||
# Update charno.
|
||||
@@ -1498,7 +1498,7 @@ class DocTestRunner:
|
||||
if t == 0:
|
||||
notests.append(name)
|
||||
elif f == 0:
|
||||
passed.append( (name, t) )
|
||||
passed.append((name, t))
|
||||
else:
|
||||
failed.append(x)
|
||||
if verbose:
|
||||
|
||||
Reference in New Issue
Block a user