From 03296e4fda23fa97acfea9a9f2182be443bf74fb Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 14 Nov 2009 00:52:44 +0100 Subject: [PATCH] [entropy.transceivers] fix ftp connection upload connection destruction --- libraries/entropy/transceivers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy/transceivers.py b/libraries/entropy/transceivers.py index a735a7b54..366ac7708 100644 --- a/libraries/entropy/transceivers.py +++ b/libraries/entropy/transceivers.py @@ -1089,7 +1089,8 @@ class FtpInterface: def cb(x): if x == filename: xx.append(x) self.__ftpconn.retrlines('NLST', cb) - if xx: return True + if xx: + return True return False def delete_file(self, file): @@ -1135,7 +1136,6 @@ class FtpInterface: self._update_speed() self.updateProgress() self._speed_limit_loop() - conn.close() # that's another workaround #return "226"