Merge pull request #544 from adqm/completer_cache_bugfix

bug fix for cache validation in completer
This commit is contained in:
Anthony Scopatz 2015-11-30 10:43:39 -05:00
commit 3f3a50884e

View file

@ -422,8 +422,8 @@ class Completer(object):
self._path_checksum = path_hash self._path_checksum = path_hash
# did aliases change? # did aliases change?
al_hash = hash(tuple(sorted(builtins.aliases.keys()))) al_hash = hash(tuple(sorted(builtins.aliases.keys())))
self._alias_checksum = al_hash
cache_valid = cache_valid and al_hash == self._alias_checksum cache_valid = cache_valid and al_hash == self._alias_checksum
self._alias_checksum = al_hash
pm = self._path_mtime pm = self._path_mtime
# did the contents of any directory in PATH change? # did the contents of any directory in PATH change?
for d in filter(os.path.isdir, path): for d in filter(os.path.isdir, path):