changeset 5f046ba929ef in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=5f046ba929ef description: List comprehension fits better
diffstat:
src/command_system/implementation/standard.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 84a75dabe7f4 -r 5f046ba929ef src/command_system/implementation/standard.py --- a/src/command_system/implementation/standard.py Thu Mar 25 19:52:27 2010 +0100 +++ b/src/command_system/implementation/standard.py Fri Mar 26 14:52:54 2010 +0200 @@ -182,8 +182,8 @@ def dtmf(self, events): if not self.audio_sid: raise CommandError(_("There is no open audio session with this contact")) - # Valid values for DTMF tones are *, # or a number - events = filter(lambda e: e in ('*', '#') or e.isdigit (), events) + # Valid values for DTMF tones are *, # or a number. + events = [e for e in events if e in ('*', '#') or e.isdigit()] if events: session = gajim.connections[self.account].get_jingle_session( self.contact.get_full_jid(), self.audio_sid)