gh-91217: deprecate xdrlib (GH-92066)

Automerge-Triggered-By: GH:brettcannon
This commit is contained in:
Brett Cannon 2022-04-29 18:22:10 -07:00 committed by GitHub
parent 7861a9e327
commit c2b579741d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View file

@ -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`.)

View file

@ -1,6 +1,8 @@
import unittest
from test.support import warnings_helper
xdrlib = warnings_helper.import_deprecated("xdrlib")
import xdrlib
class XDRTest(unittest.TestCase):

View file

@ -7,6 +7,9 @@
import struct
from io import BytesIO
from functools import wraps
import warnings
warnings._deprecated(__name__, remove=(3, 13))
__all__ = ["Error", "Packer", "Unpacker", "ConversionError"]

View file

@ -0,0 +1 @@
Deprecate the xdrlib module.