History

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

Paul Brossier committed 12 years ago

Commit 16dda031 parent 7b562291 file · +1 −4Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/aubio/slicing.py+1−4
@@ -75,12 +75,9 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None, · 74 unmodified lines
7575 g(vec[start:remaining], remaining - start)
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
8181 g(vec[start:read], read - start)
8282 total_frames += read
8383 if read < hopsize: break
84−
85− # close the last file
86− del g

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t