diff --git a/axelrod/strategies/human.py b/axelrod/strategies/human.py index 480daa5bb..0888c1930 100644 --- a/axelrod/strategies/human.py +++ b/axelrod/strategies/human.py @@ -3,13 +3,13 @@ from axelrod.action import Action from axelrod.player import Player from prompt_toolkit import prompt -from prompt_toolkit.styles import Style +from prompt_toolkit.styles import style_from_dict +from prompt_toolkit.token import Token from prompt_toolkit.validation import ValidationError, Validator -from pygments.token import Token C, D = Action.C, Action.D -toolbar_style = Style.from_dict({"pygments.toolbar": "#ffffff bg:#333333"}) +toolbar_style = style_from_dict({Token.Toolbar: "#ffffff bg:#333333"}) class ActionValidator(Validator): diff --git a/requirements.txt b/requirements.txt index fdffc2118..abb6ba18a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,8 +4,7 @@ hypothesis==3.2 matplotlib>=2.0.0,<3.0.0 numpy>=1.9.2 pandas>=0.18.1 -prompt-toolkit>=2.0.0 -pygments>=2.0.0 +prompt-toolkit>=1.0.7,<2.0.0 scipy>=0.19.0 toolz>=0.8.0 tqdm>=3.4.0