From 8761c1616fa05d9ba6a7e1ab9bdab117dff18c13 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 1 Jul 2015 15:30:08 +0200 Subject: Use positional "errors" argument to decode() For Python 2.x compatibility. --- sounddevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3