Skip to content

Commit 920f2d2

Browse files
fix: f was not defined
1 parent 4bbd670 commit 920f2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapbuffer/mapbuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
if isinstance(data, dict):
4848
self.buffer = self.dict2buf(data, compress)
4949
elif isinstance(data, io.IOBase):
50-
self.buffer = mmap.mmap(f.fileno(), 0, prot=mmap.PROT_READ)
50+
self.buffer = mmap.mmap(data.fileno(), 0, prot=mmap.PROT_READ)
5151
elif isinstance(data, (bytes, mmap.mmap)):
5252
self.buffer = data
5353
else:

0 commit comments

Comments
 (0)