Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 is a pain (minor unicode bug) #2645

Closed
rmcgibbo opened this issue Dec 4, 2012 · 2 comments
Closed

python3 is a pain (minor unicode bug) #2645

rmcgibbo opened this issue Dec 4, 2012 · 2 comments
Milestone

Comments

@rmcgibbo
Copy link
Contributor

rmcgibbo commented Dec 4, 2012

In the current git master, with python3.3 on Mac 10.7.5

In[1]: %paste
[... long traceback ...]
/Users/rmcgibbo/opt/python-3.3.0/lib/python3.3/site-packages/ipython-0.14.dev-py3.3.egg/IPython/lib/clipboard.py in osx_clipboard_get()
     31     text, stderr = p.communicate()
     32     # Text comes in with old Mac \r line endings. Change them to \n.
---> 33     text = text.replace('\r', '\n')
     34     text = py3compat.cast_unicode(text, py3compat.DEFAULT_ENCODING)
     35     return text

TypeError: expected bytes, bytearray or buffer compatible object
@takluyver
Copy link
Member

That's not current master ;-)

See #2637, #2638.

@rmcgibbo
Copy link
Contributor Author

rmcgibbo commented Dec 5, 2012

thanks @takluyver! I should have searched the issue tracker first.

@minrk minrk added this to the no action milestone Mar 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants