Skip to content

Check for non-zero length first in read loop#2465

Merged
mrocklin merged 1 commit intodask:masterfrom
jakirkham:adj_read_length_hdling
Jan 16, 2019
Merged

Check for non-zero length first in read loop#2465
mrocklin merged 1 commit intodask:masterfrom
jakirkham:adj_read_length_hdling

Conversation

@jakirkham
Copy link
Member

Since both the Python 2 and Python 3 cases need to handle the case of zero and non-zero length separately, pull this check outside of the Python 2 or 3 version checks to simplify the code a bit.

Since both the Python 2 and Python 3 cases need to handle the case of
zero and non-zero length separately, pull this check outside of the
Python 2 or 3 version checks to simplify the code a bit.
@mrocklin mrocklin merged commit 4fef1ad into dask:master Jan 16, 2019
@mrocklin
Copy link
Member

Looks good to me. Thanks @jakirkham !

@jakirkham jakirkham deleted the adj_read_length_hdling branch February 5, 2020 03:12
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

Successfully merging this pull request may close these issues.

2 participants