From 20ed561650676c1e6f29b037d149bec524ab5fca Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 26 Aug 2008 12:08:36 +0000 Subject: [PATCH] better code: list[2:][0] -> list[2] --- src/gajim-remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gajim-remote.py b/src/gajim-remote.py index 41a43658a..f1baf830d 100755 --- a/src/gajim-remote.py +++ b/src/gajim-remote.py @@ -523,10 +523,10 @@ class GajimRemote: self.arguments += ['']*(len(args)-i) def handle_uri(self): - if not sys.argv[2:][0].startswith('xmpp:'): + if not sys.argv[2].startswith('xmpp:'): send_error(_('Wrong uri')) sys.argv[2] = sys.argv[2][5:] - uri = sys.argv[2:][0] + uri = sys.argv[2] if not '?' in uri: self.command = sys.argv[1] = 'open_chat' return