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

TypeError: 'Lock' object is not iterable on py3.9 #760

Closed
DavidBord opened this issue May 14, 2020 · 3 comments
Closed

TypeError: 'Lock' object is not iterable on py3.9 #760

DavidBord opened this issue May 14, 2020 · 3 comments

Comments

@DavidBord
Copy link
Contributor

As can be seen in the errors from Sanic build: https://travis-ci.org/github/huge-success/sanic/jobs/686952886
That's probably because of this py3.9 change: python/cpython@90d9ba6

@aaugustin
Copy link
Member

OK, hopefully we can find syntax that works both on Python 3.6 and 3.9?

@ahopkins
Copy link

I think you can just use

async with...

I believe that async context managers have been in since before 3.6.

@DavidBord
Copy link
Contributor Author

Sanic tests use an old version of websockets (0.7.0).
The usage of asyncio.Lock is fixed on newer websockets version (0.8.1).

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

No branches or pull requests

3 participants