Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_roster.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 | 26edcf3a30eb |
children | 003b8b4b56a7 |
comparison
equal
deleted
inserted
replaced
2764:92af49cde255 | 2765:378188abe941 |
---|---|
88 no_to.append(contact) | 88 no_to.append(contact) |
89 if not no_sub and not no_from and not no_to: | 89 if not no_sub and not no_from and not no_to: |
90 print "Nothing to do - there's a from and/or to subscription(s) between profile [%s] and each of its contacts" % self.host.profile | 90 print "Nothing to do - there's a from and/or to subscription(s) between profile [%s] and each of its contacts" % self.host.profile |
91 elif self.ask_confirmation(no_sub, no_from, no_to): | 91 elif self.ask_confirmation(no_sub, no_from, no_to): |
92 for contact in no_sub + no_from + no_to: | 92 for contact in no_sub + no_from + no_to: |
93 self.host.bridge.delContact(contact, profile_key=self.host.profile, callback=lambda dummy: None, errback=lambda failure: None) | 93 self.host.bridge.delContact(contact, profile_key=self.host.profile, callback=lambda __: None, errback=lambda failure: None) |
94 self.host.quit() | 94 self.host.quit() |
95 | 95 |
96 | 96 |
97 class Stats(base.CommandBase): | 97 class Stats(base.CommandBase): |
98 | 98 |