| |
@@ -0,0 +1,20 @@
|
| |
+ ---
|
| |
+ prompt_toolkit/styles/from_dict.py | 5 ++++-
|
| |
+ 1 file changed, 4 insertions(+), 1 deletion(-)
|
| |
+
|
| |
+ Index: prompt_toolkit-1.0.15/prompt_toolkit/styles/from_dict.py
|
| |
+ ===================================================================
|
| |
+ --- prompt_toolkit-1.0.15.orig/prompt_toolkit/styles/from_dict.py 2019-04-08 19:44:07.417924677 +0200
|
| |
+ +++ prompt_toolkit-1.0.15/prompt_toolkit/styles/from_dict.py 2019-04-08 19:48:54.632773366 +0200
|
| |
+ @@ -6,7 +6,10 @@ This is very similar to the Pygments sty
|
| |
+ - Support for ANSI color names. (These will map directly to the 16 terminal
|
| |
+ colors.)
|
| |
+ """
|
| |
+ -from collections import Mapping
|
| |
+ +try:
|
| |
+ + from collections.abc import Mapping
|
| |
+ +except ImportError:
|
| |
+ + from collections import Mapping
|
| |
+
|
| |
+ from .base import Style, DEFAULT_ATTRS, ANSI_COLOR_NAMES
|
| |
+ from .defaults import DEFAULT_STYLE_EXTENSIONS
|
| |
Copied comment from https://github.com/prompt-toolkit/python-prompt-toolkit/issues/871:
I am trying to run xonsh 0.8.12 on Fedora 29 using prompt-toolkit 1.0.15. When I launch xonsh, I get the following output:
I have reported the bug at https://bugzilla.redhat.com/show_bug.cgi?id=1697574
I have a fix for the bug at https://src.fedoraproject.org/rpms/python-prompt_toolkit/pull-request/2