Commit bc39dd99 authored by Arnaud Fontaine's avatar Arnaud Fontaine

py3: UserDict moved to collections module.

parent 2f814c94
...@@ -26,7 +26,10 @@ ...@@ -26,7 +26,10 @@
# #
############################################################################## ##############################################################################
from UserDict import UserDict from future.standard_library import install_aliases
install_aliases()
from collections import UserDict
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5Type import Permissions, PropertySheet
......
...@@ -28,11 +28,14 @@ ...@@ -28,11 +28,14 @@
# #
############################################################################## ##############################################################################
from future.standard_library import install_aliases
install_aliases()
from builtins import map from builtins import map
from builtins import zip from builtins import zip
from builtins import str from builtins import str
from builtins import range from builtins import range
from UserDict import UserDict from collections import UserDict
import random import random
import unittest import unittest
from unittest import expectedFailure from unittest import expectedFailure
......
...@@ -27,12 +27,15 @@ ...@@ -27,12 +27,15 @@
# #
############################################################################## ##############################################################################
from future.standard_library import install_aliases
install_aliases()
from past.builtins import basestring from past.builtins import basestring
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Acquisition import aq_base from Acquisition import aq_base
from UserDict import UserDict from collections import UserDict
import collections import collections
# the ERP5 cache factory used as a storage # the ERP5 cache factory used as a storage
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from future.standard_library import install_aliases
install_aliases()
from builtins import str from builtins import str
from builtins import range from builtins import range
from builtins import object from builtins import object
import errno, logging, os, socket, time import errno, logging, os, socket, time
import itertools import itertools
from threading import Thread from threading import Thread
from UserDict import IterableUserDict from collections import UserDict
import Lifetime import Lifetime
import transaction import transaction
from Testing import ZopeTestCase from Testing import ZopeTestCase
......
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