blob: 60b1eb60fa6ae1c9eb3bbc81d9f122d90878e5db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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}")
|