From e6cfef93c6b33862b82ce18b7bf136c07c1944e7 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 20 Oct 2015 22:00:56 +0200 Subject: Remove the two last cases of old-style string formatting --- sounddevice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sounddevice.py b/sounddevice.py index d91ff28..83dac64 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -2045,7 +2045,7 @@ class default(object): object.__setattr__(self, name, value) else: raise AttributeError( - "'default' object has no attribute %s" % repr(name)) + "'default' object has no attribute " + repr(name)) @property def _default_device(self): @@ -2268,7 +2268,7 @@ def _check_dtype(dtype): elif dtype == 'float64': dtype = 'float32' else: - raise TypeError("Unsupported data type: %s" % repr(dtype)) + raise TypeError("Unsupported data type: " + repr(dtype)) return dtype -- cgit v1.2.3