{{ message }}
bpo-25988: Emit a warning when use or import ABCs from 'collections'.#5460
Merged
serhiy-storchaka merged 1 commit intoJan 31, 2018
Merged
Conversation
asvetlov
approved these changes
Jan 31, 2018
gvanrossum
approved these changes
Jan 31, 2018
gvanrossum
left a comment
Member
There was a problem hiding this comment.
Looks good to me!
Sorry, something went wrong.
vstinner
reviewed
Jan 31, 2018
|
@serhiy-storchaka: Please replace |
Sorry, something went wrong.
ilevkivskyi
pushed a commit
to ilevkivskyi/cpython
that referenced
this pull request
Feb 18, 2018
5 tasks
JoseKilo
added a commit
to JoseKilo/aiozmq
that referenced
this pull request
Sep 27, 2018
JoseKilo
added a commit
to JoseKilo/aiozmq
that referenced
this pull request
Sep 27, 2018
This was referenced Nov 21, 2018
zzbot
added a commit
to ycm-core/ycmd
that referenced
this pull request
Nov 23, 2018
Fix DeprecationWarning from classes in collections.abc This patch removes the following warning: ``` /usr/share/nvim/runtime/third_party/ycmd/ycmd/utils.py:499: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class HashableDict( collections.Mapping ): ``` This warning is originated from python/cpython#5460 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/1134) <!-- Reviewable:end -->
openstack-mirroring
pushed a commit
to openstack/trove
that referenced
this pull request
Mar 20, 2022
This PR stops using the following deprecated functions in std Python lib. * parser.readfp We should use parser.read_file(readline_generator(fp))[1]. * importing modules from collections directly. We should use collections.abc instead of using collections directly.[2] -- [1]: https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp [2]: python/cpython#5460 Task: 44767 Story: 2009917 Change-Id: I61bf4299ad2acd8ee26b4aab66875b10287020e1
openstack-mirroring
pushed a commit
to openstack/openstack
that referenced
this pull request
Mar 20, 2022
* Update trove from branch 'master'
to 04e85c1be0732b7f9333468723b1e1b26d6ddc02
- Merge "Stop using deprecated functions in std Python lib"
- Stop using deprecated functions in std Python lib
This PR stops using the following deprecated functions in std Python lib.
* parser.readfp
We should use parser.read_file(readline_generator(fp))[1].
* importing modules from collections directly.
We should use collections.abc instead of using collections directly.[2]
--
[1]: https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp
[2]: python/cpython#5460
Task: 44767
Story: 2009917
Change-Id: I61bf4299ad2acd8ee26b4aab66875b10287020e1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
https://bugs.python.org/issue25988