From f6baac5e23220535b5e460e3a2af6d65237ecbc5 Mon Sep 17 00:00:00 2001 From: Jonathan Slenders Date: Wed, 31 Jan 2018 20:17:25 +0100 Subject: [PATCH] A few small changes for being compatible with the latest prompt_toolkit 2.0 --- wharfee/style.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wharfee/style.py b/wharfee/style.py index ddb5415..430eef4 100644 --- a/wharfee/style.py +++ b/wharfee/style.py @@ -2,7 +2,7 @@ from pygments.token import Token from pygments.util import ClassNotFound from prompt_toolkit.styles import merge_styles -from prompt_toolkit.styles.pygments import style_from_pygments, style_from_pygments_dict +from prompt_toolkit.styles.pygments import style_from_pygments_cls, style_from_pygments_dict import pygments.styles @@ -13,7 +13,7 @@ def style_factory(name): pygments_style = pygments.styles.get_style_by_name('native') return merge_styles([ - style_from_pygments(pygments_style), + style_from_pygments_cls(pygments_style), style_from_pygments_dict({ Token.Menu.Completions.Completion.Current: 'bg:#00aaaa #000000', Token.Menu.Completions.Completion: 'bg:#008888 #ffffff',