Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.)
Expand Down
4 changes: 3 additions & 1 deletion Lib/test/test_xdrlib.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import unittest
from test.support import warnings_helper

xdrlib = warnings_helper.import_deprecated("xdrlib")

import xdrlib

class XDRTest(unittest.TestCase):

Expand Down
3 changes: 3 additions & 0 deletions Lib/xdrlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate the xdrlib module.