Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
zhangyangyu merged 1 commit into
python:masterpython/cpython:masterfrom
JelleZijlstra:patch-4JelleZijlstra/cpython:patch-4Copy head branch name to clipboard
Mar 13, 2017
Merged

ftplib.FTP.retrbinary callback gets a bytes, not a str#652
zhangyangyu merged 1 commit into
python:masterpython/cpython:masterfrom
JelleZijlstra:patch-4JelleZijlstra/cpython:patch-4Copy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.