Skip to content

Commit

Permalink
Avoid reusing fp symbol with a different type
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Oct 27, 2023
1 parent ff07cbe commit 35cf965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datalad_next/iter_collections/zipfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def iter_zip(
for zip_info in zip_file.infolist():
item = _get_zipfile_item(zip_info)
if fp and item.type == FileSystemItemType.file:
with zip_file.open(zip_info) as fp:
item.fp = fp
with zip_file.open(zip_info) as amfp:
item.fp = amfp
yield item
else:
yield item
Expand Down

0 comments on commit 35cf965

Please sign in to comment.