diff options
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index 1e4abe64a1..e2a74fe13c 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=''): |