Skip to content

Commit 9b28cb2

Browse files
committed
Fix unused stream variable
1 parent 0278cdd commit 9b28cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/table/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ def _metadata_location_from_version_hint(cls, metadata_location: str, properties
13861386
file = io.new_input(version_hint_location)
13871387

13881388
with file.open() as stream:
1389-
content = file.open().read().decode("utf-8")
1389+
content = stream.read().decode("utf-8")
13901390

13911391
if content.endswith('.metadata.json'):
13921392
return os.path.join(metadata_location, 'metadata', content)

0 commit comments

Comments
 (0)