mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use os.path.join instead of manually inserting slashes.
This commit is contained in:
parent
8e25e958ab
commit
74cc288cdb
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue