Browse Source

Issue #24839: platform._syscmd_ver raises DeprecationWarning

pull/9921/head
Steve Dower 11 years ago
parent
commit
cae101f5ec
  1. 2
      Lib/platform.py
  2. 1
      Misc/NEWS

2
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')

1
Misc/NEWS

@ -13,6 +13,7 @@ Core and Builtins
Library
-------
- Issue #24839: platform._syscmd_ver raises DeprecationWarning
What's New in Python 3.5.0 release candidate 1?
===============================================

Loading…
Cancel
Save