Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix %paste in Python 3 on Mac #2638

Merged
merged 1 commit into from

2 participants

@asmeurer

Fixes #2637.

@takluyver
Owner

Great, thanks. Merging now.

@takluyver takluyver merged commit 47cc489 into from
@minrk minrk referenced this pull request from a commit
@minrk minrk Backport PR #2638: Fix %paste in Python 3 on Mac
Fixes #2637.
62cd1f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 2, 2012
  1. @asmeurer

    Fix %paste in Python 3 on Mac

    asmeurer authored
    Fixes #2637.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  IPython/lib/clipboard.py
View
2  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')
text = py3compat.cast_unicode(text, py3compat.DEFAULT_ENCODING)
return text
Something went wrong with that request. Please try again.