{} ne s'update pas

This commit is contained in:
Pierre-Elliott Bécue 2015-06-06 17:49:37 +02:00
parent 583bd3d73c
commit 06f3687dd4

View file

@ -1517,7 +1517,8 @@ class userPassword(rightProtectedAttr):
comprendre"""
matched = HASH_RE.match(self.value)
groupdict = {}.update(matched.groupdict())
groupdict = {}
groupdict.update(matched.groupdict())
groupdict['method'] = groupdict['method'].upper()
return unicode("{%(method)s}%(hash)s" % groupdict)