diff sat/memory/params.py @ 2765:378188abe941

misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 11:13:15 +0100
parents e9cd473a2f46
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat/memory/params.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/memory/params.py	Fri Jan 11 11:13:15 2019 +0100
@@ -294,7 +294,7 @@
                     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 @@
 
             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 @@
                     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)