diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-09-12 23:48:15 +0200 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-09-12 23:48:15 +0200 |
commit | 893ba922ca9215f95d843235b6b402a0345ea432 (patch) | |
tree | e1bcee351ef6205a30990e1ec42c11b55f0d9689 /swiftstory | |
parent | b1866c3a4429aac915261027ea198e14361f2517 (diff) |
Remove useless use of list comprehension
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory')
-rw-r--r-- | swiftstory/Game.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swiftstory/Game.py b/swiftstory/Game.py index 6ba4e57..001ef23 100644 --- a/swiftstory/Game.py +++ b/swiftstory/Game.py @@ -11,8 +11,8 @@ class Game: WAITING_DESIGNATION = 2 def __init__(self, white_desc, black_desc): - white_pick = [i for i in enumerate(white_desc)] - black_pick = [i for i in enumerate(black_desc)] + white_pick = list(enumerate(white_desc)) + black_pick = list(enumerate(black_desc)) self.state = self.WAITING_NEW_JUDGE |