-
Notifications
You must be signed in to change notification settings - Fork 551
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
import iterable from collection.abc instead of collections to clear deprecation warning in python 3.10 #393
base: master
Are you sure you want to change the base?
Conversation
@@ -12,11 +12,14 @@ | |||
from past.builtins import basestring | |||
from pyhive import exc | |||
import abc | |||
import collections |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file still uses deque from collections at
Line 41 in d6e7140
self._data = collections.deque() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted to "import collections" and changed import at Iterable statement as collections.abc.Iterable
ed55b37
to
7d99233
Compare
7d99233
to
33b1dbb
Compare
This PR seems like it would be really handy as it would allow pyhive to be compatible with python 3.10. Any chance of it getting merged? |
|
What's the ETA to merge this pull request? |
As a workaround, I just added the code on my python script:
|
Filled out the Dropbox Contributor License Agreement
Fixes #392