Commit 040cc01f authored by Jérome Perrin's avatar Jérome Perrin

revert r42653. dumps(None) does not raise an error.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42666 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 45966ded
...@@ -1312,8 +1312,7 @@ def fortify(): ...@@ -1312,8 +1312,7 @@ def fortify():
CacheEntry__init__ = CacheEntry.__init__ CacheEntry__init__ = CacheEntry.__init__
def __init__(self, value, *args, **kw): def __init__(self, value, *args, **kw):
# this will raise TypeError if you try to cache a persistent object # this will raise TypeError if you try to cache a persistent object
if value is not None: dumps(value)
dumps(value)
CacheEntry__init__(self, value, *args, **kw) CacheEntry__init__(self, value, *args, **kw)
CacheEntry.__init__ = __init__ CacheEntry.__init__ = __init__
# randomize priorities of activities in a deterministic way # randomize priorities of activities in a deterministic way
......
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