Commit 8f8f1079 authored by Julien Muchembled's avatar Julien Muchembled

New ZODB uses zodbpickle instead of cPickle

parent 69e3f02f
...@@ -26,7 +26,11 @@ ...@@ -26,7 +26,11 @@
# #
############################################################################## ##############################################################################
from cPickle import PicklingError try:
from ZODB._compat import cPickle
PicklingError = cPickle.PicklingError
except ImportError: # BBB: ZODB < 4
from cPickle import PicklingError
from Acquisition import aq_base from Acquisition import aq_base
from Products.ERP5Type.Accessor.Constant import PropertyGetter as \ from Products.ERP5Type.Accessor.Constant import PropertyGetter as \
PropertyConstantGetter PropertyConstantGetter
......
...@@ -26,7 +26,10 @@ ...@@ -26,7 +26,10 @@
# #
############################################################################## ##############################################################################
import cPickle try:
from ZODB._compat import cPickle
except ImportError: # BBB: ZODB < 4
import cPickle
import unittest import unittest
import sys import sys
......
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