diff sat/plugins/plugin_misc_register_account.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 56f94936df1e
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_register_account.py	Fri Jan 11 10:18:02 2019 +0100
+++ b/sat/plugins/plugin_misc_register_account.py	Fri Jan 11 11:13:15 2019 +0100
@@ -81,7 +81,7 @@
 
         session_data["user"], host, resource = jid.parse(session_data["JabberID"])
         session_data["server"] = session_data[C.FORCE_SERVER_PARAM] or host
-        session_id, dummy = self._sessions.newSession(session_data, profile=profile)
+        session_id, __ = self._sessions.newSession(session_data, profile=profile)
         form_ui = xml_tools.XMLUI(
             "form",
             title=D_("Register new account"),
@@ -129,7 +129,7 @@
 
     def _registerNewAccount(self, client, jid_, password, email, server):
         #  FIXME: port is not set here
-        def registeredCb(dummy):
+        def registeredCb(__):
             xmlui = xml_tools.XMLUI(u"popup", title=D_(u"Confirmation"))
             xmlui.addText(D_("Registration successful."))
             return {"xmlui": xmlui.toXml()}