ui/Machine.py Removed extra parenthesys

This parsys should be removed.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 18:00:49 +02:00
parent f78c8e1ef4
commit d4f9d101c4

View File

@ -137,10 +137,10 @@ class MachineUI(UIBase):
self.getnicename(destfolder), destfolder))
def folderlist(self, ulist):
return ("\f".join(["%s\t%s" % (self.getnicename(x), x.getname()) for x in ulist]))
return "\f".join(["%s\t%s" % (self.getnicename(x), x.getname()) for x in ulist])
def uidlist(self, ulist):
return ("\f".join([str(u) for u in ulist]))
return "\f".join([str(u) for u in ulist])
def deletingmessages(self, uidlist, destlist):
ds = self.folderlist(destlist)
@ -188,7 +188,7 @@ class MachineUI(UIBase):
self._log_con_handler.acquire() # lock the console output
try:
self._printData(self.logger.info, 'getpass', username)
return (sys.stdin.readline()[:-1])
return sys.stdin.readline()[:-1]
finally:
self._log_con_handler.release()