Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cae101f

Browse files
committed
Issue #24839: platform._syscmd_ver raises DeprecationWarning
1 parent 2ab6ddb commit cae101f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _syscmd_ver(system='', release='', version='',
440440
# Try some common cmd strings
441441
for cmd in ('ver', 'command /c ver', 'cmd /c ver'):
442442
try:
443-
pipe = popen(cmd)
443+
pipe = os.popen(cmd)
444444
info = pipe.read()
445445
if pipe.close():
446446
raise OSError('command failed')

Misc/NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Core and Builtins
1313
Library
1414
-------
1515

16+
- Issue #24839: platform._syscmd_ver raises DeprecationWarning
1617

1718
What's New in Python 3.5.0 release candidate 1?
1819
===============================================

0 commit comments

Comments
 (0)