From cae101f5ecd8fee38a37ce8fa46c141cd8a522ef Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 10 Aug 2015 20:57:37 -0700 Subject: Issue #24839: platform._syscmd_ver raises DeprecationWarning --- Lib/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/platform.py') 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') -- cgit v1.2.1