Mercurial > public > src > moin > 1.9
diff MoinMoin/user.py @ 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 | eb8df08f88f5 |
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):