Skip to content

Commit

Permalink
Read wav files in binary mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Nov 11, 2013
1 parent 92f4b99 commit fdf8d1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IPython/lib/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class Audio(DisplayObject):
Audio(data=b'RAW_WAV_DATA..)
"""

_read_flags = 'rb'

def __init__(self, data=None, filename=None, url=None, embed=None, rate=None, autoplay=False):
if filename is None and url is None and data is None:
raise ValueError("No image data found. Expecting filename, url, or data.")
Expand Down

0 comments on commit fdf8d1b

Please sign in to comment.