Skip to content

Commit

Permalink
Revert "Update Human to work with prompt_toolkit >= 2.00" (#1219)
Browse files Browse the repository at this point in the history
This reverts commit f61d0cb.
  • Loading branch information
drvinceknight authored and marcharper committed Oct 31, 2018
1 parent d9e6dbe commit 8dba4c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions axelrod/strategies/human.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8dba4c0

Please sign in to comment.