summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-08-11 03:57:37 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-08-11 03:57:37 (GMT)
commitcae101f5ecd8fee38a37ce8fa46c141cd8a522ef (patch)
treeec9d28a52412a731a682024f509f540f530898da /Lib/platform.py
parent2ab6ddb19d4e4e43249710fe7d34b1d821c5fc47 (diff)
downloadcpython-cae101f5ecd8fee38a37ce8fa46c141cd8a522ef.zip
cpython-cae101f5ecd8fee38a37ce8fa46c141cd8a522ef.tar.gz
cpython-cae101f5ecd8fee38a37ce8fa46c141cd8a522ef.tar.bz2
Issue #24839: platform._syscmd_ver raises DeprecationWarning
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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')