Skip to content

Commit

Permalink
fix: missing '_fh' and '_file' attributes after unpickling (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Feb 6, 2024
1 parent 1cee960 commit 6e3d313
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/uproot/source/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def __getstate__(self):

def __setstate__(self, state):
self.__dict__ = state
self._file = None
self._fh = None
self._open()

def __enter__(self):
Expand Down

0 comments on commit 6e3d313

Please sign in to comment.