Skip to content

Revert "Update Human to work with prompt_toolkit >= 2.00" #1219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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