changeset 3822:b209aea96826

use base64 legacy interface for python 2.3
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 10 Jul 2008 10:14:06 +0200
parents 3433428abe41
children 262738c1f46b
files MoinMoin/user.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Tue Jul 08 16:58:19 2008 +0200
+++ b/MoinMoin/user.py	Thu Jul 10 10:14:06 2008 +0200
@@ -157,7 +157,7 @@
     hash = sha.new(pwd)
     hash.update(salt)
 
-    return '{SSHA}' + base64.b64encode(hash.digest() + salt).rstrip()
+    return '{SSHA}' + base64.encodestring(hash.digest() + salt).rstrip()
 
 
 def normalizeName(name):