mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
PEP8 changes
This commit is contained in:
parent
9cab71f6a2
commit
c4d05892ec
1 changed files with 0 additions and 3 deletions
|
@ -33,13 +33,11 @@ COMP_CWORD={n}
|
|||
for ((i=0;i<${{#COMPREPLY[*]}};i++)) do echo ${{COMPREPLY[i]}}; done
|
||||
"""
|
||||
|
||||
import time
|
||||
|
||||
def update_bash_completion():
|
||||
global BASH_COMPLETE_FUNCS, BASH_COMPLETE_FILES, BASH_COMPLETE_HASH
|
||||
global CACHED_FUNCS, CACHED_FILES, CACHED_HASH, INITED
|
||||
|
||||
t = time.time()
|
||||
completers = builtins.__xonsh_env__.get('BASH_COMPLETIONS', ())
|
||||
BASH_COMPLETE_HASH = hashlib.md5(repr(completers).encode()).hexdigest()
|
||||
|
||||
|
@ -63,7 +61,6 @@ def update_bash_completion():
|
|||
pickle.dump(val, cache)
|
||||
INITED = True
|
||||
|
||||
|
||||
invalid = ((not os.path.isfile(cachefname)) or
|
||||
BASH_COMPLETE_HASH != CACHED_HASH or
|
||||
_completions_time() > os.stat(cachefname).st_mtime)
|
||||
|
|
Loading…
Add table
Reference in a new issue