From fdf8d1b9f1cef88d8ab699c3b597dfca82d158e3 2013-11-11 17:37:11 From: Thomas Kluyver Date: 2013-11-11 17:37:11 Subject: [PATCH] Read wav files in binary mode. Closes gh-4520 --- diff --git a/IPython/lib/display.py b/IPython/lib/display.py index 1144230..dc8337d 100644 --- a/IPython/lib/display.py +++ b/IPython/lib/display.py @@ -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.")