Changeset 16dda03


Ignore:
Timestamp:
Jan 24, 2014, 2:23:35 AM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
98a3887
Parents:
7b56229
Message:

python/lib/aubio/slicing.py: use close not del, let garbage collector close the last file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/slicing.py

    r7b56229 r16dda03  
    7676                    #print "closing region", "remaining", remaining
    7777                    # close this file
    78                     del g
     78                    g.close()
    7979            elif read > start:
    8080                # write all the samples
     
    8282        total_frames += read
    8383        if read < hopsize: break
    84 
    85     # close the last file
    86     del g
Note: See TracChangeset for help on using the changeset viewer.