fix indentation

This commit is contained in:
Yann Leboulanger 2012-06-20 23:58:08 +02:00
parent ee05914b30
commit 5d7ce867b4
1 changed files with 29 additions and 29 deletions

View File

@ -302,13 +302,13 @@ class SocksQueue:
def send_file(self, file_props, account, mode): def send_file(self, file_props, account, mode):
for key in self.senders.keys(): for key in self.senders.keys():
if self.senders == {}: if self.senders == {}:
# Python acts very weird with this. When there is no keys # Python acts very weird with this. When there is no keys
# in the dictionary It says that it has a key. # in the dictionary It says that it has a key.
# Maybe it is my machine. Without this there is a KeyError # Maybe it is my machine. Without this there is a KeyError
# traceback. # traceback.
return return
if file_props.name in key and file_props.sid in key \ if file_props.name in key and file_props.sid in key \
and self.senders[key].mode == mode: and self.senders[key].mode == mode:
log.info("socks5: sending file") log.info("socks5: sending file")