diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-08 12:42:40 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-08 12:42:40 +0100 |
| commit | e834a1805966f664742abdd75cb8c40f7b89cd47 (patch) | |
| tree | 4f1134b2dcaf608a2b920af3567dc786c427cfcd | |
| parent | 4430a716cd9deee6daa59ed43aa63e176c1c9119 (diff) | |
Use vars() instead of __dict__ in default.reset()
| -rw-r--r-- | sounddevice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py index d0f5f5e..870f9d7 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -2102,7 +2102,7 @@ class default(object): def reset(self): """Reset all attributes to their "factory default".""" - self.__dict__ = {} + vars(self).clear() self.__init__() if not hasattr(_ffi, 'I_AM_FAKE'): |
