mirror of https://github.com/python/cpython
gh-91217: deprecate xdrlib (GH-92066)
Automerge-Triggered-By: GH:brettcannon
This commit is contained in:
parent
7861a9e327
commit
c2b579741d
|
@ -1081,6 +1081,7 @@ Deprecated
|
|||
* :mod:`sunau`
|
||||
* :mod:`telnetlib`
|
||||
* :mod:`uu`
|
||||
* :mod:`xdrlib`
|
||||
|
||||
(Contributed by Brett Cannon in :issue:`47061` and Victor Stinner in
|
||||
:gh:`68966`.)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import unittest
|
||||
from test.support import warnings_helper
|
||||
|
||||
xdrlib = warnings_helper.import_deprecated("xdrlib")
|
||||
|
||||
import xdrlib
|
||||
|
||||
class XDRTest(unittest.TestCase):
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@ See: RFC 1014
|
|||
import struct
|
||||
from io import BytesIO
|
||||
from functools import wraps
|
||||
import warnings
|
||||
|
||||
warnings._deprecated(__name__, remove=(3, 13))
|
||||
|
||||
__all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Deprecate the xdrlib module.
|
Loading…
Reference in New Issue