diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-08-10 20:57:37 -0700 |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-08-10 20:57:37 -0700 |
commit | cae101f5ecd8fee38a37ce8fa46c141cd8a522ef (patch) | |
tree | ec9d28a52412a731a682024f509f540f530898da /Lib/platform.py | |
parent | Post-release bump for Python 3.5.0rc1. (diff) | |
download | cpython-cae101f5ecd8fee38a37ce8fa46c141cd8a522ef.tar.gz cpython-cae101f5ecd8fee38a37ce8fa46c141cd8a522ef.tar.bz2 cpython-cae101f5ecd8fee38a37ce8fa46c141cd8a522ef.zip |
Issue #24839: platform._syscmd_ver raises DeprecationWarning
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index 6345184902b..9096696a7e4 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -440,7 +440,7 @@ def _syscmd_ver(system='', release='', version='', # Try some common cmd strings for cmd in ('ver', 'command /c ver', 'cmd /c ver'): try: - pipe = popen(cmd) + pipe = os.popen(cmd) info = pipe.read() if pipe.close(): raise OSError('command failed') |