projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d7c75c
)
YAML knows about integers. Not tuples
author
Stefano Rivera
<stefano@rivera.za.net>
Sat, 17 May 2014 17:01:37 +0000
(19:01 +0200)
committer
Stefano Rivera
<stefano@rivera.za.net>
Sat, 17 May 2014 17:02:29 +0000
(19:02 +0200)
naja/gameboard.py
patch
|
blob
|
history
diff --git
a/naja/gameboard.py
b/naja/gameboard.py
index d70a49890f99fc4a183aed48813ca6b7d53b8378..9855546c905a0a96019ecd60861132400cbbe7b6 100644
(file)
--- 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: