Commit 70d9d928 authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid duplicating "+16" offset in sizeof.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2481 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ceddb0fd
......@@ -109,7 +109,7 @@ class Data(object):
def sizeof(o):
"""This function returns the estimated size of an object."""
if isinstance(o, tuple):
return sum((len(s)+16 for s in o))
return sum((sizeof(s) for s in o))
else:
return len(o)+16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment