mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Fix tidy issues with Python files in python/
This commit is contained in:
parent
c639a0cf49
commit
e3b71c65bf
9 changed files with 106 additions and 18 deletions
|
@ -100,7 +100,12 @@ def check_whitespace(idx, line):
|
|||
def check_by_line(contents):
|
||||
lines = contents.splitlines(True)
|
||||
for idx, line in enumerate(lines):
|
||||
for error in itertools.chain(check_length(idx, line), check_whitespace(idx, line), check_whatwg_url(idx, line)):
|
||||
errors = itertools.chain(
|
||||
check_length(idx, line),
|
||||
check_whitespace(idx, line),
|
||||
check_whatwg_url(idx, line),
|
||||
)
|
||||
for error in errors:
|
||||
yield error
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue