Skip to content

Commit

Permalink
hooks: pkg_resources: rename _TOC_TREE_CACHE -> _toc_tree_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rokm committed Nov 7, 2020
1 parent d860948 commit 1cae87e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PyInstaller/hooks/rthooks/pyi_rth_pkgres.py
Expand Up @@ -98,7 +98,7 @@ def path_listdir(self, path):


# Cache for reconstructed embedded trees
_TOC_TREE_CACHE = {}
_toc_tree_cache = {}


class PyiFrozenProvider(pkg_resources.NullProvider):
Expand Down Expand Up @@ -149,10 +149,10 @@ def embedded_tree(self):
pkg_name = '.'.join(rel_pkg_path.parts)

# Initialize and cache the tree, if necessary
if pkg_name not in _TOC_TREE_CACHE:
_TOC_TREE_CACHE[pkg_name] = \
if pkg_name not in _toc_tree_cache:
_toc_tree_cache[pkg_name] = \
self._init_embedded_tree(rel_pkg_path, pkg_name)
self._embedded_tree = _TOC_TREE_CACHE[pkg_name]
self._embedded_tree = _toc_tree_cache[pkg_name]
return self._embedded_tree

def _normalize_path(self, path):
Expand Down

0 comments on commit 1cae87e

Please sign in to comment.