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

Make AsyncDictReader compatible with Python 3.7+ #21

Merged
merged 1 commit into from
May 13, 2019

Conversation

radzak
Copy link
Contributor

@radzak radzak commented May 13, 2019

Fixes #20

async def __aiter__(self):
header = await self.file_reader.readline()

if header:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't seem to find a reason for this line, but I might be missing something :)

Was it just an optimisation of some sort?

@radzak radzak changed the title Make AsyncDictReader compatible with Python 3.7 Make AsyncDictReader compatible with Python 3.7+ May 13, 2019
@radzak
Copy link
Contributor Author

radzak commented May 13, 2019

@mosquito Hey mate, CI on cloud.drone.io failed with following error:

from _pytest.python import transfer_markers
45 | ImportError: cannot import name 'transfer_markers'

Do you have any idea why?

I tested the code on Python 3.5.6, 3.7-dev and 3.8-dev.

EDIT: it passed all the CI checks

@mosquito mosquito merged commit 4463ea6 into mosquito:master May 13, 2019
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.

Your AsyncDictReader example has a bug in it
2 participants