From 781b8371fa213e1a2c44f5ba58444a26c0a5c15e Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Sat, 17 May 2014 22:27:18 +0200 Subject: [PATCH] *REAL* Python has no dict comprehensions. --- naja/gameboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naja/gameboard.py b/naja/gameboard.py index 689c3fd..66c6519 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -188,7 +188,7 @@ class GameBoard(object): # Find which cards are at their maximum and exclude them from # the choice list counts = {} - choices = {card['card_name']: card for card in cards} + choices = dict((card['card_name'], card) for card in cards) for pos, card in board_locations: if pos == position: # skip the card we're replacing if appropriate -- 2.34.1