/offlineimap/head: changeset 456

Fixed a silly error relating to handling of the remotepassfile.
Closes: #189935.
This commit is contained in:
jgoerzen 2003-04-29 02:52:03 +01:00
parent 0ff4f610de
commit 044877a5f5
2 changed files with 5 additions and 3 deletions

View File

@ -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 <jgoerzen@complete.org> Mon, 28 Apr 2003 14:00:32 -0500

View File

@ -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