mirror of https://github.com/python/cpython
Issue #11377: platform.popen() emits a DeprecationWarning
This commit is contained in:
parent
a9100721e9
commit
25000d4d31
|
@ -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…
Reference in New Issue