Skip to content

Commit 8dba4c0

Browse files
drvinceknightmarcharper
authored andcommitted
Revert "Update Human to work with prompt_toolkit >= 2.00" (#1219)
This reverts commit f61d0cb.
1 parent d9e6dbe commit 8dba4c0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

axelrod/strategies/human.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
from axelrod.action import Action
44
from axelrod.player import Player
55
from prompt_toolkit import prompt
6-
from prompt_toolkit.styles import Style
6+
from prompt_toolkit.styles import style_from_dict
7+
from prompt_toolkit.token import Token
78
from prompt_toolkit.validation import ValidationError, Validator
8-
from pygments.token import Token
99

1010
C, D = Action.C, Action.D
1111

12-
toolbar_style = Style.from_dict({"pygments.toolbar": "#ffffff bg:#333333"})
12+
toolbar_style = style_from_dict({Token.Toolbar: "#ffffff bg:#333333"})
1313

1414

1515
class ActionValidator(Validator):

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ hypothesis==3.2
44
matplotlib>=2.0.0,<3.0.0
55
numpy>=1.9.2
66
pandas>=0.18.1
7-
prompt-toolkit>=2.0.0
8-
pygments>=2.0.0
7+
prompt-toolkit>=1.0.7,<2.0.0
98
scipy>=0.19.0
109
toolz>=0.8.0
1110
tqdm>=3.4.0

0 commit comments

Comments
 (0)