File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3
3
from axelrod .action import Action
4
4
from axelrod .player import Player
5
5
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
7
8
from prompt_toolkit .validation import ValidationError , Validator
8
- from pygments .token import Token
9
9
10
10
C , D = Action .C , Action .D
11
11
12
- toolbar_style = Style . from_dict ({ "pygments.toolbar" : "#ffffff bg:#333333" })
12
+ toolbar_style = style_from_dict ({ Token . Toolbar : "#ffffff bg:#333333" })
13
13
14
14
15
15
class ActionValidator (Validator ):
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ hypothesis==3.2
4
4
matplotlib >= 2.0.0 ,< 3.0.0
5
5
numpy >= 1.9.2
6
6
pandas >= 0.18.1
7
- prompt-toolkit >= 2.0.0
8
- pygments >= 2.0.0
7
+ prompt-toolkit >= 1.0.7 ,< 2.0.0
9
8
scipy >= 0.19.0
10
9
toolz >= 0.8.0
11
10
tqdm >= 3.4.0
You can’t perform that action at this time.
0 commit comments