aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy
diff options
context:
space:
mode:
authorTimur Borkhodoev <timur.borkhodoev@mail.utoronto.ca>2018-02-02 15:39:59 -0500
committerTimur Borkhodoev <timur.borkhodoev@mail.utoronto.ca>2018-02-02 15:39:59 -0500
commit515300a20c989cf7000f5c40e9f8b00b72dd472c (patch)
tree982eb0254bd9b41db0ee46ec965ac1172c9bf600 /python/tidy
parentc351b526f6505ec3237038776696ca3c22ec9d87 (diff)
downloadservo-515300a20c989cf7000f5c40e9f8b00b72dd472c.tar.gz
servo-515300a20c989cf7000f5c40e9f8b00b72dd472c.zip
Change bad namings
Diffstat (limited to 'python/tidy')
-rw-r--r--python/tidy/servo_tidy/tidy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index fa3a610a41d..56e466760e5 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -449,9 +449,9 @@ def check_shell(file_name, lines):
yield(idx + 1, "variable substitutions should use the full \"${VAR}\" form")
-def rec_parse(current_path, current_node):
+def rec_parse(current_path, root_node):
dirs = []
- for item in current_node.children:
+ for item in root_node.children:
if isinstance(item, node.DataNode):
next_depth = os.path.join(current_path, item.data)
dirs.append(next_depth)
@@ -473,8 +473,8 @@ def check_manifest_dirs(config_file, print_text=True):
print '\rChecking the wpt manifest file...'
p = parser.parse(lines)
- rv = rec_parse(wpt_path("web-platform-tests"), p)
- for idx, path in enumerate(rv):
+ paths = rec_parse(wpt_path("web-platform-tests"), p)
+ for idx, path in enumerate(paths):
if path.endswith("_mozilla"):
continue
if not os.path.isdir(path):