Deprecate os.popen* and popen2 module in favor of the subprocess module.

This commit is contained in:
Neal Norwitz 2007-05-11 06:57:33 +00:00
parent 82be218e97
commit 42dd86b8e2
9 changed files with 69 additions and 30 deletions

View file

@ -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"]