misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
This commit is contained in:
parent
fa0179f87e
commit
7a9ee35cfc
1 changed files with 215 additions and 215 deletions
|
|
@ -294,7 +294,7 @@ class Params(object):
|
|||
if (
|
||||
len(cat_node.childNodes) == to_remove_count
|
||||
): # remove empty category
|
||||
for dummy in xrange(0, to_remove_count):
|
||||
for __ in xrange(0, to_remove_count):
|
||||
to_remove.pop()
|
||||
to_remove.append(cat_node)
|
||||
for node in to_remove:
|
||||
|
|
@ -714,7 +714,7 @@ class Params(object):
|
|||
|
||||
prof_xml.unlink()
|
||||
dlist = defer.gatherResults(names_d_list)
|
||||
dlist.addCallback(lambda dummy: ret)
|
||||
dlist.addCallback(lambda __: ret)
|
||||
return ret
|
||||
|
||||
d = self._constructProfileXml(security_limit, "", profile)
|
||||
|
|
@ -1071,7 +1071,7 @@ class Params(object):
|
|||
profile=profile,
|
||||
)
|
||||
d.addCallback(
|
||||
lambda dummy: PasswordHasher.hash(value)
|
||||
lambda __: PasswordHasher.hash(value)
|
||||
) # profile password is hashed (empty value stays empty)
|
||||
elif value: # other non empty passwords are encrypted with the personal key
|
||||
d = BlockCipher.encrypt(personal_key, value)
|
||||
|
|
|
|||
Loading…
Reference in a new issue