Skip to content

Commit 2551a6c

Browse files
authored
gh-91217: deprecate-pipes (GH-91779)
1 parent 29afb7d commit 2551a6c

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Diff for: Doc/whatsnew/3.11.rst

+1
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ Deprecated
919919
* :mod:`nis`
920920
* :mod:`nntplib`
921921
* :mod:`ossaudiodev`
922+
* :mod:`pipes`
922923

923924
(Contributed by Brett Cannon in :issue:`47061`.)
924925

Diff for: Lib/pipes.py

+3
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@
6060
import re
6161
import os
6262
import tempfile
63+
import warnings
6364
# we import the quote function rather than the module for backward compat
6465
# (quote used to be an undocumented but used function in pipes)
6566
from shlex import quote
6667

68+
warnings._deprecated(__name__, remove=(3, 13))
69+
6770
__all__ = ["Template"]
6871

6972
# Conversion step kinds

Diff for: Lib/test/test_pipes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import pipes
21
import os
32
import string
43
import unittest
54
import shutil
65
from test.support import reap_children, unix_shell
76
from test.support.os_helper import TESTFN, unlink
7+
from test.support.warnings_helper import import_deprecated
8+
9+
pipes = import_deprecated("pipes")
810

911

1012
if os.name != 'posix':
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deprecate the 'pipes' module.

0 commit comments

Comments
 (0)