ref: 16dda037d1ce8a8762ed515212833aae09d3c021
parent: 7b56229d3b025e3c417d762607c8599034481a39
author: Paul Brossier <piem@piem.org>
date: Thu Jan 23 17:23:35 EST 2014
python/lib/aubio/slicing.py: use close not del, let garbage collector close the last file
--- a/python/lib/aubio/slicing.py
+++ b/python/lib/aubio/slicing.py
@@ -75,12 +75,9 @@
g(vec[start:remaining], remaining - start)
#print "closing region", "remaining", remaining
# close this file
- del g
+ g.close()
elif read > start:
# write all the samples
g(vec[start:read], read - start)
total_frames += read
if read < hopsize: break
-
- # close the last file
- del g