From 044877a5f51b17b3778a8ccaa18cc02b2dae4471 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Tue, 29 Apr 2003 02:52:03 +0100 Subject: [PATCH] /offlineimap/head: changeset 456 Fixed a silly error relating to handling of the remotepassfile. Closes: #189935. --- offlineimap/head/debian/changelog | 2 ++ offlineimap/head/offlineimap/repository/IMAP.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/offlineimap/head/debian/changelog b/offlineimap/head/debian/changelog index 844852e..9573c74 100644 --- a/offlineimap/head/debian/changelog +++ b/offlineimap/head/debian/changelog @@ -8,6 +8,8 @@ offlineimap (3.99.15) unstable; urgency=low the Curses.Blinkenlights interface, the Curses module will be stopped and the error message will be printed on the console. Previously, this error message would not have been visible. Closes: #185709. + * Fixed a silly error relating to handling of the remotepassfile. + Closes: #189935. -- John Goerzen Mon, 28 Apr 2003 14:00:32 -0500 diff --git a/offlineimap/head/offlineimap/repository/IMAP.py b/offlineimap/head/offlineimap/repository/IMAP.py index 2cf5b23..db243b9 100644 --- a/offlineimap/head/offlineimap/repository/IMAP.py +++ b/offlineimap/head/offlineimap/repository/IMAP.py @@ -20,7 +20,7 @@ from Base import BaseRepository from offlineimap import folder, imaputil, imapserver from offlineimap.folder.UIDMaps import MappedIMAPFolder from offlineimap.threadutil import ExitNotifyThread -import re, types +import re, types, os from threading import * class IMAPRepository(BaseRepository): @@ -115,8 +115,8 @@ class IMAPRepository(BaseRepository): passfile = self.getconf('remotepassfile', None) if passfile != None: fd = open(os.path.expanduser(passfile)) - password = passfile.readline().strip() - passfile.close() + password = fd.readline().strip() + fd.close() return password return None