summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2015-07-01 15:30:08 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2015-07-01 15:30:08 +0200
commit8761c1616fa05d9ba6a7e1ab9bdab117dff18c13 (patch)
treeb7096e63cdf52c38c85e5ae76a377a6c505421a3
parentacabf69c944298fddd3e8bdbe64922db5e9a7ad8 (diff)
Use positional "errors" argument to decode()
For Python 2.x compatibility.
-rw-r--r--sounddevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py
index f4de10a..87c2e72 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -646,7 +646,7 @@ def query_devices(index=None):
else:
encoding = 'utf-8'
return {
- 'name': _ffi.string(info.name).decode(encoding, errors='replace'),
+ 'name': _ffi.string(info.name).decode(encoding, 'replace'),
'hostapi': info.hostApi,
'max_input_channels': info.maxInputChannels,
'max_output_channels': info.maxOutputChannels,