Commit 50e5d0f4 authored by Yusei Tahara's avatar Yusei Tahara

new module was deprecated. use types module instead.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18665 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c75d5f98
......@@ -31,9 +31,9 @@ try:
import persistent
except ImportError:
import sys
import new
import types
from ZODB import PersistentList
persistent = new.module('persistent')
persistent = types.ModuleType('persistent')
persistent.list = PersistentList
sys.modules['persistent'] = persistent
sys.modules['persistent.list'] = persistent.list
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