Skip to content

Commit e834a18

Browse files
committed
Use vars() instead of __dict__ in default.reset()
1 parent 4430a71 commit e834a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sounddevice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ def hostapi(self):
21022102

21032103
def reset(self):
21042104
"""Reset all attributes to their "factory default"."""
2105-
self.__dict__ = {}
2105+
vars(self).clear()
21062106
self.__init__()
21072107

21082108
if not hasattr(_ffi, 'I_AM_FAKE'):

0 commit comments

Comments
 (0)