Skip to content

ftplib.FTP.retrbinary callback gets a bytes, not a str#652

Merged
zhangyangyu merged 1 commit intopython:masterfrom
JelleZijlstra:patch-4
Mar 13, 2017
Merged

ftplib.FTP.retrbinary callback gets a bytes, not a str#652
zhangyangyu merged 1 commit intopython:masterfrom
JelleZijlstra:patch-4

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

This helps clarify that the callback to retrbinary gets bytes and the callback to retrlines gets str. See the tests at https://github.com/python/cpython/blob/master/Lib/test/test_ftplib.py#L558 to confirm the types that are passed to these callbacks.

This helps clarify that the callback to retrbinary gets bytes and the callback to retrlines gets str. See the tests at https://github.com/python/cpython/blob/master/Lib/test/test_ftplib.py#L558 to confirm the types that are passed to these callbacks.
@mention-bot
Copy link
Copy Markdown

@JelleZijlstra, thanks for your PR! By analyzing the history of the files in this pull request, we identified @birkenfeld, @giampaolo, @benjaminp, @tiran and @vadmium to be potential reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants