commit | cae101f5ecd8fee38a37ce8fa46c141cd8a522ef | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Mon Aug 10 20:57:37 2015 -0700 |
committer | Steve Dower <steve.dower@microsoft.com> | Mon Aug 10 20:57:37 2015 -0700 |
tree | ec9d28a52412a731a682024f509f540f530898da | |
parent | 2ab6ddb19d4e4e43249710fe7d34b1d821c5fc47 [diff] [blame] |
Issue #24839: platform._syscmd_ver raises DeprecationWarning
diff --git a/Lib/platform.py b/Lib/platform.py index 6345184..9096696 100755 --- a/Lib/platform.py +++ b/Lib/platform.py
@@ -440,7 +440,7 @@ # 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')