diff options
author | Mike Chen <chagel@gmail.com> | 2009-07-05 22:23:43 +0800 |
---|---|---|
committer | Mike Chen <chagel@gmail.com> | 2009-07-05 22:23:43 +0800 |
commit | 4d3d4fc3fffbda4e2d6e111305f84fab915c0a75 (patch) | |
tree | f64a43e1c74b4d72ba06f150d472441ad82334d1 /django_authopenid/util.py | |
parent | 519c3f865a8a0448caf8771371a1dc2ae63a62ac (diff) | |
download | askbot-4d3d4fc3fffbda4e2d6e111305f84fab915c0a75.tar.gz askbot-4d3d4fc3fffbda4e2d6e111305f84fab915c0a75.tar.bz2 askbot-4d3d4fc3fffbda4e2d6e111305f84fab915c0a75.zip |
add Chinese message files to move out localiztion
Diffstat (limited to 'django_authopenid/util.py')
-rw-r--r-- | django_authopenid/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django_authopenid/util.py b/django_authopenid/util.py index 841a81c7..54c1246b 100644 --- a/django_authopenid/util.py +++ b/django_authopenid/util.py @@ -15,7 +15,7 @@ try: except: from yadis import xri -import time, base64, md5, operator +import time, base64, hashlib, operator import urllib from models import Association, Nonce @@ -128,7 +128,7 @@ class DjangoOpenIDStore(OpenIDStore): def getAuthKey(self): # Use first AUTH_KEY_LEN characters of md5 hash of SECRET_KEY - return md5.new(settings.SECRET_KEY).hexdigest()[:self.AUTH_KEY_LEN] + return hashlib.md5(settings.SECRET_KEY).hexdigest()[:self.AUTH_KEY_LEN] def isDumb(self): return False |