Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-91217: deprecate-pipes #91779

Merged
merged 3 commits into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -884,6 +884,7 @@ Deprecated
* :mod:`msilib`
* :mod:`nis`
* :mod:`nntplib`
* :mod:`pipes`

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

Expand Down
3 changes: 3 additions & 0 deletions Lib/pipes.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate the 'pipes' module.