diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-11 06:57:33 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-11 06:57:33 (GMT) |
commit | 42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3 (patch) | |
tree | 27d7ad013999378e92e4a94742831cd2081f5359 /Lib/popen2.py | |
parent | 82be218e971725657af9b3231a0c467e99ade26f (diff) | |
download | cpython-42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3.zip cpython-42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3.tar.gz cpython-42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3.tar.bz2 |
Deprecate os.popen* and popen2 module in favor of the subprocess module.
Diffstat (limited to 'Lib/popen2.py')
-rw-r--r-- | Lib/popen2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/popen2.py b/Lib/popen2.py index ab30463..145b340 100644 --- a/Lib/popen2.py +++ b/Lib/popen2.py @@ -8,6 +8,9 @@ and popen3(cmd) which return two or three pipes to the spawned command. import os import sys +import warnings +warnings.warn("The popen2 module is deprecated. Use the subprocess module.", + DeprecationWarning, stacklevel=2) __all__ = ["popen2", "popen3", "popen4"] |