Fix tidy issues with Python files in python/

This commit is contained in:
Corey Farwell 2015-06-02 19:51:41 -04:00
parent c639a0cf49
commit e3b71c65bf
9 changed files with 106 additions and 18 deletions

View file

@ -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