minor formating update. Ref #2700

This commit is contained in:
David Gros 2018-07-04 15:54:43 -07:00
parent 10d87cf545
commit 9a0f41b692
2 changed files with 3 additions and 1 deletions

View file

@ -145,11 +145,13 @@ def ptk_above_min_supported():
minimum_required_ptk_version = (1, 0)
return ptk_version_info()[:2] >= minimum_required_ptk_version
@functools.lru_cache(1)
def ptk_below_max_supported():
ptk_max_version_cutoff = (2, 0)
return ptk_version_info()[:2] < ptk_max_version_cutoff
@functools.lru_cache(1)
def best_shell_type():
if ON_WINDOWS or has_prompt_toolkit():

View file

@ -142,7 +142,7 @@ class Shell(object):
'supported. Please see Github PR #2570 for '
'latest status. To use prompt-toolkit now you '
'can downgrade to version 1.x with\n'
'pip install "prompt_toolkit<2"\n'
'xpip install "prompt_toolkit<2"\n'
'Starting xonsh with readline shell instead.')
shell_type = 'readline'
self.shell_type = env['SHELL_TYPE'] = shell_type