From: Steve Dower Date: Tue, 11 Aug 2015 03:57:37 +0000 (-0700) Subject: Issue #24839: platform._syscmd_ver raises DeprecationWarning X-Git-Tag: v3.5.0rc2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cae101f5ecd8fee38a37ce8fa46c141cd8a522ef;p=python Issue #24839: platform._syscmd_ver raises DeprecationWarning --- diff --git a/Lib/platform.py b/Lib/platform.py index 6345184902..9096696a7e 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') diff --git a/Misc/NEWS b/Misc/NEWS index 4400c03303..9156c29cb8 100644 --- a/Misc/NEWS +++ b/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? ===============================================