From a12dd14b0afd356c09480a2b5b2b82e9c35425be Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sat, 17 May 2014 19:01:37 +0200 Subject: [PATCH] YAML knows about integers. Not tuples --- naja/gameboard.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/naja/gameboard.py b/naja/gameboard.py index d70a498..9855546 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -46,9 +46,7 @@ class GameBoard(object): puzzle_defaults = deck.get('defaults', {}) for k, v in puzzle_defaults.iteritems(): if isinstance(v, list): - puzzle_defaults[k] = [int(x) for x in v] - else: - puzzle_defaults[k] = int(v) + puzzle_defaults[k] = tuple(v) defaults.update(puzzle_defaults) if initial_bits is None: -- 2.34.1