From 25000d4d31dfa5842776aa92f234ea6672489c67 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 24 May 2011 00:16:16 +0200 Subject: Issue #11377: platform.popen() emits a DeprecationWarning --- Lib/platform.py | 2 ++ 1 file changed, 2 insertions(+) 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=''): -- cgit v0.12