/head: changeset 38

*** empty log message ***
This commit is contained in:
jgoerzen 2002-06-21 10:55:23 +01:00
parent 8171027aa1
commit cf52b56246
2 changed files with 3 additions and 2 deletions

View File

@ -50,6 +50,6 @@ class IMAPRepository(BaseRepository):
continue
retval.append(folder.IMAP.IMAPFolder(self.imapserver, name,
self.nametrans(imaputil.dequote(name))))
retval.sort()
retval.sort(lambda x, y: cmp(x.getvisiblename(), y.getvisiblename()))
self.folders = retval
return retval

View File

@ -31,10 +31,11 @@ class TTYUI(UIBase):
(remainingsecs / 60, remainingsecs % 60))
sys.stdout.flush()
else:
sys.stdout.write("Wait done, proceeding with sync.... ")
sys.stdout.write("Wait done, proceeding with sync.... \n")
if sleepsecs > 0:
if len(select.select([sys.stdin], [], [], sleepsecs)[0]):
sys.stdin.readline()
return 1
return 0