diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2016-11-02 18:49:04 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2016-11-02 20:15:29 +0100 |
| commit | e5a6c3b8a2182767735ad259cfc789f85715c89c (patch) | |
| tree | bc5e114d55a4c0d07b2a4d65a035b4eac865c648 /examples/spectrogram.py | |
| parent | e791adfadfaf8562203acbc177cb4aef342fce84 (diff) | |
Fix "atexit" handling
atexit.unregister() removes all instances of the registered function,
not only one, therefore nested calls didn't work like they are supposed
to. See http://portaudio.com/docs/v19-doxydocs/portaudio_8h.html and
https://docs.python.org/3/library/atexit.html#atexit.unregister.
This commit fixes #47, which was the real reason for the change, since
atexit.unregister() doesn't even exist in Python 2.
Diffstat (limited to 'examples/spectrogram.py')
0 files changed, 0 insertions, 0 deletions
