aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy.py
diff options
context:
space:
mode:
authorDhananjay Nakrani <dhananjaynakrani@gmail.com>2015-04-21 10:19:29 -0700
committerDhananjay Nakrani <dhananjaynakrani@gmail.com>2015-04-21 10:20:13 -0700
commit030580e720af2b74e62281325ef7cb7cbf7ccaba (patch)
tree6f6992ef59d2147f6250955c1e850e3d23e46f75 /python/tidy.py
parent7453959426258fa85a94dc7b17373c3e6ce3a2e8 (diff)
downloadservo-030580e720af2b74e62281325ef7cb7cbf7ccaba.tar.gz
servo-030580e720af2b74e62281325ef7cb7cbf7ccaba.zip
Rename check_whitespace_url_len() -> check_by_line().
Diffstat (limited to 'python/tidy.py')
-rw-r--r--python/tidy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tidy.py b/python/tidy.py
index f8c34a243e0..07eebf80677 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -94,7 +94,7 @@ def check_whitespace(idx, line):
if "\r" in line:
yield (idx + 1, "CR on line")
-def check_whitespace_url_len(contents):
+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)):
@@ -137,7 +137,7 @@ def scan():
all_files = collect_file_names(directories_to_check)
files_to_check = filter(should_check, all_files)
- checking_functions = [check_license, check_whitespace_url_len]
+ checking_functions = [check_license, check_by_line]
errors = collect_errors_for_files(files_to_check, checking_functions)
reftest_files = collect_file_names(reftest_directories)