Skip to content

Commit cc9e013

Browse files
authored
Initialize deque with path string (spack#48734)
1 parent b8e448a commit cc9e013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spack/llnl/util/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ def set_executable(path):
14721472
def recursive_mtime_greater_than(path: str, time: float) -> bool:
14731473
"""Returns true if any file or dir recursively under `path` has mtime greater than `time`."""
14741474
# use bfs order to increase likelihood of early return
1475-
queue: Deque[str] = collections.deque(path)
1475+
queue: Deque[str] = collections.deque([path])
14761476

14771477
if os.stat(path).st_mtime > time:
14781478
return True

0 commit comments

Comments
 (0)