Author vajrasky
Recipients vajrasky
Date 2013-08-23.05:13:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377234795.91.0.783821607183.issue18817@psf.upfronthosting.co.za>
In-reply-to
Content
The python is compiled with debug option.

<omitted>cpython$ ./python Lib/aifc.py Lib/test/sndhdrdata/sndhdr.aiff 
Reading Lib/test/sndhdrdata/sndhdr.aiff
nchannels = 2
nframes   = 5
sampwidth = 2
framerate = 44100
comptype  = b'NONE'
compname  = b'not compressed'
sys:1: ResourceWarning: unclosed file <_io.BufferedReader name='Lib/test/sndhdrdata/sndhdr.aiff'>

Attached the patch to close the file automatically and print "Done." message not just with writing mode but for reading mode as well.
History
Date User Action Args
2013-08-23 05:13:15vajraskysetrecipients: + vajrasky
2013-08-23 05:13:15vajraskysetmessageid: <1377234795.91.0.783821607183.issue18817@psf.upfronthosting.co.za>
2013-08-23 05:13:15vajraskylinkissue18817 messages
2013-08-23 05:13:15vajraskycreate