summaryrefslogtreecommitdiff
path: root/sounddevice.py
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2015-10-20 22:00:56 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2015-10-20 22:00:56 +0200
commite6cfef93c6b33862b82ce18b7bf136c07c1944e7 (patch)
tree8567767aa391f48bf815ef4e90521f2f7387e0b1 /sounddevice.py
parent80526f1abac7e3ed8a5d25e73df23c00867e9d65 (diff)
Remove the two last cases of old-style string formatting
Diffstat (limited to 'sounddevice.py')
-rw-r--r--sounddevice.py4
1 files 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