mirror of
https://github.com/python/cpython.git
synced 2025-08-17 23:31:09 +00:00
gh-91896: Revert some very noisy DeprecationWarnings for ByteString
(#104424)
This commit is contained in:
parent
1be80ed107
commit
c527eb1c2a
7 changed files with 19 additions and 79 deletions
|
@ -1,12 +1,3 @@
|
|||
from _collections_abc import *
|
||||
from _collections_abc import __all__
|
||||
from _collections_abc import _CallableGenericAlias
|
||||
|
||||
_deprecated_ByteString = globals().pop("ByteString")
|
||||
|
||||
def __getattr__(attr):
|
||||
if attr == "ByteString":
|
||||
import warnings
|
||||
warnings._deprecated("collections.abc.ByteString", remove=(3, 14))
|
||||
return _deprecated_ByteString
|
||||
raise AttributeError(f"module 'collections.abc' has no attribute {attr!r}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue