|
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.
|