Skip to content

Commit bc28b26

Browse files
committed
very light refactor of the py3k PR
1 parent 63e2dfc commit bc28b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydub/audio_segment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(self, data=None, *args, **kwargs):
127127
setattr(self, attr, val)
128128
else:
129129
# normal construction
130-
data = data if isinstance(data, basestring) or isinstance(data, bytes) else data.read()
130+
data = data if isinstance(data, (basestring, bytes)) else data.read()
131131
raw = wave.open(StringIO(data), 'rb')
132132

133133
raw.rewind()

0 commit comments

Comments
 (0)