mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #11377: platform.popen() emits a DeprecationWarning
This commit is contained in:
parent
a9100721e9
commit
25000d4d31
1 changed files with 2 additions and 0 deletions
|
@ -361,6 +361,8 @@ def popen(cmd, mode='r', bufsize=-1):
|
|||
|
||||
""" Portable popen() interface.
|
||||
"""
|
||||
import warnings
|
||||
warnings.warn('use os.popen instead', DeprecationWarning, stacklevel=2)
|
||||
return os.popen(cmd, mode, bufsize)
|
||||
|
||||
def _norm_version(version, build=''):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue