Skip to content

Commit 8761c16

Browse files
committed
Use positional "errors" argument to decode()
For Python 2.x compatibility.
1 parent acabf69 commit 8761c16

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
@@ -646,7 +646,7 @@ def query_devices(index=None):
646646
else:
647647
encoding = 'utf-8'
648648
return {
649-
'name': _ffi.string(info.name).decode(encoding, errors='replace'),
649+
'name': _ffi.string(info.name).decode(encoding, 'replace'),
650650
'hostapi': info.hostApi,
651651
'max_input_channels': info.maxInputChannels,
652652
'max_output_channels': info.maxOutputChannels,

0 commit comments

Comments
 (0)