Skip to content

Commit

Permalink
Remove keys() from for loops
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Durant <[email protected]>
  • Loading branch information
Skylion007 and martindurant authored Jan 16, 2024
1 parent a0d0115 commit 84b2bdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fsspec/implementations/tests/test_tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_info():
assert lhs == expected

# Iterate over all files.
for f in archive_data.keys():
for f in archive_data:
lhs = fs.info(f)

# Probe some specific fields of Tar archives.
Expand Down
2 changes: 1 addition & 1 deletion fsspec/implementations/tests/test_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_info():
fs = fsspec.filesystem("zip", fo=z)

# Iterate over all files.
for f in archive_data.keys():
for f in archive_data:
lhs = fs.info(f)

# Probe some specific fields of Zip archives.
Expand Down

0 comments on commit 84b2bdd

Please sign in to comment.