mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
gh-91217: deprecate-pipes (GH-91779)
This commit is contained in:
parent
29afb7d2ef
commit
2551a6c92f
4 changed files with 8 additions and 1 deletions
|
@ -919,6 +919,7 @@ Deprecated
|
||||||
* :mod:`nis`
|
* :mod:`nis`
|
||||||
* :mod:`nntplib`
|
* :mod:`nntplib`
|
||||||
* :mod:`ossaudiodev`
|
* :mod:`ossaudiodev`
|
||||||
|
* :mod:`pipes`
|
||||||
|
|
||||||
(Contributed by Brett Cannon in :issue:`47061`.)
|
(Contributed by Brett Cannon in :issue:`47061`.)
|
||||||
|
|
||||||
|
|
|
@ -60,10 +60,13 @@ To create a new template object initialized to a given one:
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import warnings
|
||||||
# we import the quote function rather than the module for backward compat
|
# we import the quote function rather than the module for backward compat
|
||||||
# (quote used to be an undocumented but used function in pipes)
|
# (quote used to be an undocumented but used function in pipes)
|
||||||
from shlex import quote
|
from shlex import quote
|
||||||
|
|
||||||
|
warnings._deprecated(__name__, remove=(3, 13))
|
||||||
|
|
||||||
__all__ = ["Template"]
|
__all__ = ["Template"]
|
||||||
|
|
||||||
# Conversion step kinds
|
# Conversion step kinds
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import pipes
|
|
||||||
import os
|
import os
|
||||||
import string
|
import string
|
||||||
import unittest
|
import unittest
|
||||||
import shutil
|
import shutil
|
||||||
from test.support import reap_children, unix_shell
|
from test.support import reap_children, unix_shell
|
||||||
from test.support.os_helper import TESTFN, unlink
|
from test.support.os_helper import TESTFN, unlink
|
||||||
|
from test.support.warnings_helper import import_deprecated
|
||||||
|
|
||||||
|
pipes = import_deprecated("pipes")
|
||||||
|
|
||||||
|
|
||||||
if os.name != 'posix':
|
if os.name != 'posix':
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Deprecate the 'pipes' module.
|
Loading…
Add table
Add a link
Reference in a new issue