]> granicus.if.org Git - python/commitdiff
Issue #24839: platform._syscmd_ver raises DeprecationWarning
authorSteve Dower <steve.dower@microsoft.com>
Tue, 11 Aug 2015 03:57:37 +0000 (20:57 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Tue, 11 Aug 2015 03:57:37 +0000 (20:57 -0700)
Lib/platform.py
Misc/NEWS

index 6345184902bee46348cdeeb89f2f2b9452ea701e..9096696a7e4a78cdcccd149379b92ae4ba94abf3 100755 (executable)
@@ -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')
index 4400c03303cc65ef3101699e42bdfead5f8df89b..9156c29cb8ec8060b9cf10bfe37048adc2fe43f6 100644 (file)
--- 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?
 ===============================================