From b66862d27e4432ea0a5afa26b3452a04b530c4b2 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 21 Nov 2005 10:34:10 +0000 Subject: [PATCH] minor --- src/common/socks5.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/common/socks5.py b/src/common/socks5.py index e14fd9889..5d91236ba 100644 --- a/src/common/socks5.py +++ b/src/common/socks5.py @@ -35,8 +35,7 @@ MAX_BUFF_LEN = 65536 class SocksQueue: ''' queue for all file requests objects ''' - def __init__(self, complete_transfer_cb = None, - progress_transfer_cb = None): + def __init__(self, complete_transfer_cb = None, progress_transfer_cb = None): self.connected = 0 self.readers = {} self.files_props = {} @@ -306,14 +305,11 @@ running instance of Gajim. \nFile Transfer will be canceled.\n================== ''' if result is None: return - if result in (0, -1) and \ - self.complete_transfer_cb is not None: + if result in (0, -1) and self.complete_transfer_cb is not None: account = actor.account - self.complete_transfer_cb(account, - actor.file_props) + self.complete_transfer_cb(account, actor.file_props) elif self.progress_transfer_cb is not None: - self.progress_transfer_cb(actor.account, - actor.file_props) + self.progress_transfer_cb(actor.account, actor.file_props) def remove_receiver(self, idx, do_disconnect = True): ''' Remove reciver from the list and decrease