Skip to content

Commit

Permalink
gh-91217: deprecate-pipes (GH-91779)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Apr 22, 2022
1 parent 29afb7d commit 2551a6c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Doc/whatsnew/3.11.rst
Expand Up @@ -919,6 +919,7 @@ Deprecated
* :mod:`nis`
* :mod:`nntplib`
* :mod:`ossaudiodev`
* :mod:`pipes`

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

Expand Down
3 changes: 3 additions & 0 deletions Lib/pipes.py
Expand Up @@ -60,10 +60,13 @@
import re
import os
import tempfile
import warnings
# we import the quote function rather than the module for backward compat
# (quote used to be an undocumented but used function in pipes)
from shlex import quote

warnings._deprecated(__name__, remove=(3, 13))

__all__ = ["Template"]

# Conversion step kinds
Expand Down
4 changes: 3 additions & 1 deletion Lib/test/test_pipes.py
@@ -1,10 +1,12 @@
import pipes
import os
import string
import unittest
import shutil
from test.support import reap_children, unix_shell
from test.support.os_helper import TESTFN, unlink
from test.support.warnings_helper import import_deprecated

pipes = import_deprecated("pipes")


if os.name != 'posix':
Expand Down
@@ -0,0 +1 @@
Deprecate the 'pipes' module.

0 comments on commit 2551a6c

Please sign in to comment.