Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8cd9ad8

Browse files
committed
fix: bad iterdir usage.
1 parent 09ad22a commit 8cd9ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_docs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,8 @@ def copy_build_to_webroot(self):
883883
]
884884
)
885885
changed.append("archives/")
886-
for file_name in target.iterdir("archives"):
887-
changed.append("archives/" + file_name)
886+
for file in (target / "archives").iterdir():
887+
changed.append("archives/" + file.name)
888888

889889
logging.info("%s files changed", len(changed))
890890
if changed and not self.skip_cache_invalidation:

0 commit comments

Comments
 (0)