diff --git a/IPython/lib/clipboard.py b/IPython/lib/clipboard.py index deef0da..194dae9 100644 --- a/IPython/lib/clipboard.py +++ b/IPython/lib/clipboard.py @@ -30,7 +30,7 @@ def osx_clipboard_get(): stdout=subprocess.PIPE) text, stderr = p.communicate() # Text comes in with old Mac \r line endings. Change them to \n. - text = text.replace('\r', '\n') + text = text.replace(b'\r', b'\n') return text def tkinter_clipboard_get():