0
0
mirror of https://github.com/python/cpython.git synced 2024-11-29 00:56:12 +01:00

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 @@ 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"]

View File

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