Skip to content

Commit

Permalink
Set ReadOnlyDirectory attributes when fSeekKeys == 0 (scikit-hep#660)
Browse files Browse the repository at this point in the history
* Set ReadOnlyDirectory attributes when fSeekKeys == 0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: Martin <ka_hei_martin_kwok@brown.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and Moelf committed Aug 18, 2022
1 parent b38f08f commit abd0e78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uproot/reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,8 @@ def __init__(self, path, cursor, context, file, parent):
if self._fSeekKeys == 0:
self._header_key = None
self._keys = []

self._keys_lookup = {}
self._len = None
else:
keys_start = self._fSeekKeys
keys_stop = min(keys_start + self._fNbytesKeys + 8, file.fEND)
Expand Down

0 comments on commit abd0e78

Please sign in to comment.