From 74cc288cdbd971191cfd9d906165b48094028631 Mon Sep 17 00:00:00 2001 From: Duncan Keall Date: Wed, 10 Sep 2014 11:03:21 +1200 Subject: [PATCH] Use os.path.join instead of manually inserting slashes. --- python/tidy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):