/offlineimap/head: changeset 456
Fixed a silly error relating to handling of the remotepassfile. Closes: #189935.
This commit is contained in:
parent
0ff4f610de
commit
044877a5f5
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user