[Python-bugs-list] ConfigParser (file not closed) (PR#185)
guido@CNRI.Reston.VA.US
guido@CNRI.Reston.VA.US
Tue, 18 Jan 2000 13:49:28 -0500 (EST)
> In library module ConfigParser, I believe the following patch
> should be applied:
>
> --- ConfigParser.py Tue Jan 18 19:41:04 2000
> ***************
> *** 173,178 ****
> --- 173,179 ----
> try:
> fp = open(file, 'r')
> self.__read(fp)
> + fp.close()
> except IOError:
> pass
Thanks, you're right. This is already fixed in our CVS tree (it was
done as part of some reorganization).
--Guido van Rossum (home page: http://www.python.org/~guido/)