Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
back-propagate PR #293 into 3.4.x (making 3.4.20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Jun 24, 2019
1 parent b5141ea commit 1c27377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions uproot/source/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class FileSource(uproot.source.chunked.ChunkedSource):

def __init__(self, path, *args, **kwds):
self._size = None
self._parallel = kwds["parallel"]
super(FileSource, self).__init__(os.path.expanduser(path), *args, **kwds)

def size(self):
Expand All @@ -55,6 +56,7 @@ def threadlocal(self):
out._chunkbytes = self._chunkbytes
out.cache = self.cache
out._source = None # local file connections are *not shared* among threads (they're *not* thread-safe)
out._setup_futures(self._parallel)
return out

def _open(self):
Expand Down
2 changes: 1 addition & 1 deletion uproot/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import re

__version__ = "3.4.19"
__version__ = "3.4.20"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit 1c27377

Please sign in to comment.