aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy.py
diff options
context:
space:
mode:
authorDuncan Keall <duncan@duncankeall.com>2014-09-10 11:03:21 +1200
committerDuncan Keall <duncan@duncankeall.com>2014-09-10 11:03:21 +1200
commit74cc288cdbd971191cfd9d906165b48094028631 (patch)
treedc187810a99fbc08edd06b4f149a7ccc9e45ab1c /python/tidy.py
parent8e25e958ab8dd6262beb7787b4a9698e858bac1d (diff)
downloadservo-74cc288cdbd971191cfd9d906165b48094028631.tar.gz
servo-74cc288cdbd971191cfd9d906165b48094028631.zip
Use os.path.join instead of manually inserting slashes.
Diffstat (limited to 'python/tidy.py')
-rw-r--r--python/tidy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy.py b/python/tidy.py
index ee1372761fa..0fc71ac3134 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -31,7 +31,7 @@ def collect_file_names(top_directories):
for top_directory in top_directories:
for dirname, dirs, files in os.walk(top_directory):
for basename in files:
- yield dirname + "/" + basename
+ yield os.path.join(dirname, basename)
def should_check(file_name):