diff gamelib/serializer.py @ 450:5d74d0e4a4cc

Switch to XML (RPC) for save game encoding.
author Simon Cross <hodgestar@gmail.com>
date Sat, 21 Nov 2009 20:11:40 +0000
parents cf4b020e6385
children fdda0f3c956b
line wrap: on
line diff
--- a/gamelib/serializer.py	Sat Nov 21 20:11:08 2009 +0000
+++ b/gamelib/serializer.py	Sat Nov 21 20:11:40 2009 +0000
@@ -11,7 +11,7 @@
     if refs is None:
         refs = set()
 
-    refid = id(item)
+    refid = str(id(item))
 
     if refid in refs:
         return { 'byref': refid }