From: Stefano Rivera Date: Sat, 17 May 2014 17:01:37 +0000 (+0200) Subject: YAML knows about integers. Not tuples X-Git-Tag: 0.1~71 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=a12dd14b0afd356c09480a2b5b2b82e9c35425be;p=naja.git YAML knows about integers. Not tuples --- 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: