[REM] access to deprecated APIs for unsupported Python versions

bzr revid: xmo@openerp.com-20121214121711-d1r6nx82f0mpwgwy
This commit is contained in:
Xavier Morel 2012-12-14 13:17:11 +01:00
parent 4cb3685f70
commit 83c102714f
1 changed files with 1 additions and 7 deletions

View File

@ -53,13 +53,7 @@ import utils
from generic import *
from utils import readNonWhitespace, readUntilWhitespace, ConvertFunctionsToVirtualList
if version_info < ( 2, 4 ):
from sets import ImmutableSet as frozenset
if version_info < ( 2, 5 ):
from md5 import md5
else:
from hashlib import md5
from hashlib import md5
##
# This class supports writing PDF files out, given pages produced by another