[Neo-report] r2482 vincent - /trunk/neo/client/mq.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 9 13:54:30 CET 2010
Author: vincent
Date: Thu Dec 9 13:54:30 2010
New Revision: 2482
Log:
Add support for None in values (unknown size at the moment).
Modified:
trunk/neo/client/mq.py
Modified: trunk/neo/client/mq.py
==============================================================================
--- trunk/neo/client/mq.py [iso-8859-1] (original)
+++ trunk/neo/client/mq.py [iso-8859-1] Thu Dec 9 13:54:30 2010
@@ -110,6 +110,9 @@ def sizeof(o):
"""This function returns the estimated size of an object."""
if isinstance(o, tuple):
return sum((sizeof(s) for s in o))
+ elif o is None:
+ # XXX: unknown size (arch pointer ?)
+ return 0
else:
return len(o)+16
More information about the Neo-report
mailing list