/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

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