summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-23 22:16:16 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-23 22:16:16 (GMT)
commit25000d4d31dfa5842776aa92f234ea6672489c67 (patch)
tree6b2bb23a1a180c01b60e1bf1da3c85d126605632 /Lib/platform.py
parenta9100721e9057d6332a5e5c97e134d80173aedd0 (diff)
downloadcpython-25000d4d31dfa5842776aa92f234ea6672489c67.zip
cpython-25000d4d31dfa5842776aa92f234ea6672489c67.tar.gz
cpython-25000d4d31dfa5842776aa92f234ea6672489c67.tar.bz2
Issue #11377: platform.popen() emits a DeprecationWarning
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index 1e4abe6..e2a74fe 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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=''):