mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Deprecate os.popen* and popen2 module in favor of the subprocess module.
This commit is contained in:
parent
82be218e97
commit
42dd86b8e2
9 changed files with 69 additions and 30 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue