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

Return len of item written to OutStream #685

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Jun 14, 2021

Closes #682

Remove the piece of logic that handle not isinstance(str) it is a
leftover from Python 2, in pure Python, sys.stdout.write only accepts
str, therefore we have no reason not to do the same.

Closes ipython#682

Remove the piece of logic that handle `not isinstance(str)` it is a
leftover from Python 2, in pure Python, sys.stdout.write only accepts
str, therefore we have no reason not to do the same.
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@blink1073 blink1073 added this to the 6.0 milestone Jun 14, 2021
@blink1073 blink1073 added the bug label Jun 14, 2021
@blink1073 blink1073 merged commit 42e691b into ipython:master Jun 14, 2021
@Carreau
Copy link
Member Author

Carreau commented Jun 15, 2021

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipykernel.iostream.OutStream.write() fails to return the number of characters written
2 participants