mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -1,6 +1,12 @@
|
|||
#! /usr/bin/env python
|
||||
"""Test script for popen2.py"""
|
||||
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
|
||||
DeprecationWarning)
|
||||
warnings.filterwarnings("ignore", "os\.popen. is deprecated.*",
|
||||
DeprecationWarning)
|
||||
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue