Commit 25000d4d authored by Victor Stinner's avatar Victor Stinner

Issue #11377: platform.popen() emits a DeprecationWarning

parent a9100721
......@@ -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=''):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment