From 9a0f41b692d6dd7a248d77ae66e7cf5cd12d10f6 Mon Sep 17 00:00:00 2001 From: David Gros Date: Wed, 4 Jul 2018 15:54:43 -0700 Subject: [PATCH] minor formating update. Ref #2700 --- xonsh/platform.py | 2 ++ xonsh/shell.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xonsh/platform.py b/xonsh/platform.py index 12d762c01..05d9a9015 100644 --- a/xonsh/platform.py +++ b/xonsh/platform.py @@ -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(): diff --git a/xonsh/shell.py b/xonsh/shell.py index a3572aed9..5fb306ff4 100644 --- a/xonsh/shell.py +++ b/xonsh/shell.py @@ -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