Skip to content

Commit a9bbe98

Browse files
committed
BF: on windows readline won't exist, but it doesn't matter
1 parent e973f62 commit a9bbe98

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎psychopy/sound/backend_sounddevice.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
import os
1010
import time
1111
import re
12-
import readline # Work around GH-2230
12+
try:
13+
import readline # Work around GH-2230
14+
except ImportError:
15+
pass # all that will happen is the stderr/stdout might get redirected
1316

1417
from psychopy import logging, exceptions
1518
from psychopy.constants import (PLAYING, PAUSED, FINISHED, STOPPED,

0 commit comments

Comments
 (0)