(original) (raw)

changeset: 70323:e44b851d0a2b parent: 70321:202d973e8bf5 user: Victor Stinner victor.stinner@haypocalc.com date: Tue May 24 00:16:16 2011 +0200 files: Lib/platform.py description: Issue #11377: platform.popen() emits a DeprecationWarning diff -r 202d973e8bf5 -r e44b851d0a2b Lib/platform.py --- a/Lib/platform.py Tue May 24 01:03:33 2011 +0300 +++ b/Lib/platform.py Tue May 24 00:16:16 2011 +0200 @@ -361,6 +361,8 @@ """ 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=''): /victor.stinner@haypocalc.com