Skip to content

Commit e6cfef9

Browse files
committed
Remove the two last cases of old-style string formatting
1 parent 80526f1 commit e6cfef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sounddevice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ def __setattr__(self, name, value):
20452045
object.__setattr__(self, name, value)
20462046
else:
20472047
raise AttributeError(
2048-
"'default' object has no attribute %s" % repr(name))
2048+
"'default' object has no attribute " + repr(name))
20492049

20502050
@property
20512051
def _default_device(self):
@@ -2268,7 +2268,7 @@ def _check_dtype(dtype):
22682268
elif dtype == 'float64':
22692269
dtype = 'float32'
22702270
else:
2271-
raise TypeError("Unsupported data type: %s" % repr(dtype))
2271+
raise TypeError("Unsupported data type: " + repr(dtype))
22722272
return dtype
22732273

22742274

0 commit comments

Comments
 (0)