Commit d4565882 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Import hash algorithms from hashlib, if possible.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30908 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4954638f
...@@ -33,8 +33,14 @@ import re ...@@ -33,8 +33,14 @@ import re
import string import string
import time import time
import warnings import warnings
from md5 import new as md5_new try:
from sha import new as sha_new # Python 2.5 or later
from hashlib import md5 as md5_new
from hashlib import sha1 as sha_new
except ImportError:
# Python 2.4
from md5 import new as md5_new
from sha import new as sha_new
from zope.interface import implementedBy from zope.interface import implementedBy
......
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