mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
fix for getting aliases in commands cache
This commit is contained in:
parent
787469e415
commit
e459737929
1 changed files with 1 additions and 1 deletions
|
@ -1548,7 +1548,7 @@ class CommandsCache(abc.Mapping):
|
|||
cache_valid = path_hash == self._path_checksum
|
||||
self._path_checksum = path_hash
|
||||
# did aliases change?
|
||||
alss = builtins.aliases
|
||||
alss = getattr(builtins, 'aliases', set())
|
||||
al_hash = hash(frozenset(alss))
|
||||
cache_valid = cache_valid and al_hash == self._alias_checksum
|
||||
self._alias_checksum = al_hash
|
||||
|
|
Loading…
Add table
Reference in a new issue