Skip to content

Commit 1422fd7

Browse files
hoechenbergerpeircej
authored andcommitted
ENH/BF: Workaround for stderr confusion after importing sounddevice
Fixes GH-2230. Old behavior: ``` In [1]: from psychopy.sound import Sound pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html In [2]: input('foo> ') bar. Out[2]: 'bar.' ``` New behavior: ``` In [1]: from psychopy.sound import Sound pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html In [2]: input('foo> ') foo> bar. Out[2]: 'bar.' ```
1 parent c0110db commit 1422fd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

psychopy/sound/backend_sounddevice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
try:
2020
import sounddevice as sd
21+
import readline # Work around GH-2230.
2122
except Exception:
2223
raise DependencyError("sounddevice not working")
2324
try:

0 commit comments

Comments
 (0)