Skip to content

Commit

Permalink
Use os.path.join instead of manually inserting slashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Keall committed Sep 9, 2014
1 parent 8e25e95 commit 74cc288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tidy.py
Expand Up @@ -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):
Expand Down

0 comments on commit 74cc288

Please sign in to comment.