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

Fix: #454 #460

Merged
merged 1 commit into from Apr 24, 2020
Merged

Fix: #454 #460

merged 1 commit into from Apr 24, 2020

Conversation

dongweiming
Copy link
Contributor

@dongweiming dongweiming commented Dec 28, 2019

What do these changes do?

Compatible with Python3.8's IncompleteReadError

Are there changes in behavior for the user?

Related issue number

#454

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: Fix issue with non-ascii contents in doctest text files.

@Dazix
Copy link

Dazix commented Jan 29, 2020

@asvetlov can you look to this? We have python3.8 app which fails because of this issue.

@remy-sl
Copy link

remy-sl commented Mar 4, 2020

Guys, we are stuck on this as well. All I can do is post this humble bump with a kind request to expedite a release with this fix. Thanks in advance.

@matino
Copy link

matino commented Mar 5, 2020

@asvetlov Can we have it merged and get a new version released? Python 3.8 is out for some time now, it's a real shame that aiomysql is lagging far behind...

@NotSoSuper
Copy link
Contributor

How is this not fixed yet...

@Bu3a3a
Copy link

Bu3a3a commented Apr 5, 2020

Hey guys!
Please merge it asap. Ubuntu 20.04 is going to be released in two weeks and it comes with python3.8 as default.
I've installed beta and that's the reason I'm reading this issue :)

@Dazix
Copy link

Dazix commented Apr 6, 2020

Can someone else look at this please? @webknjaz @terrycain @jettify

@@ -596,7 +600,7 @@ def write_packet(self, payload):
async def _read_bytes(self, num_bytes):
try:
data = await self._reader.readexactly(num_bytes)
except asyncio.streams.IncompleteReadError as e:
except IncompleteReadError as e:
Copy link
Member

@webknjaz webknjaz Apr 6, 2020

Choose a reason for hiding this comment

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

From the docs, it looks like it should be

Suggested change
except IncompleteReadError as e:
except asyncio.IncompleteReadError as e:

and no imports needed.

Refs:

Copy link

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@webknjaz @Dazix fixed 👍

@webknjaz webknjaz merged commit 4291449 into aio-libs:master Apr 24, 2020
@webknjaz
Copy link
Member

Merged, somebody needs to fix the CI tho

@Dazix
Copy link

Dazix commented Apr 24, 2020

@webknjaz one last thing, could you publish new version with these changes to pypi.org? Thanks.

@webknjaz
Copy link
Member

webknjaz commented Apr 24, 2020

Only when someone fixes the CI (ref #466)

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.

None yet

7 participants