mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Issue #24839: platform._syscmd_ver raises DeprecationWarning
This commit is contained in:
		
							parent
							
								
									2ab6ddb19d
								
							
						
					
					
						commit
						cae101f5ec
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -440,7 +440,7 @@ def _syscmd_ver(system='', release='', version='', | ||||||
|     # Try some common cmd strings |     # Try some common cmd strings | ||||||
|     for cmd in ('ver', 'command /c ver', 'cmd /c ver'): |     for cmd in ('ver', 'command /c ver', 'cmd /c ver'): | ||||||
|         try: |         try: | ||||||
|             pipe = popen(cmd) |             pipe = os.popen(cmd) | ||||||
|             info = pipe.read() |             info = pipe.read() | ||||||
|             if pipe.close(): |             if pipe.close(): | ||||||
|                 raise OSError('command failed') |                 raise OSError('command failed') | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ Core and Builtins | ||||||
| Library | Library | ||||||
| ------- | ------- | ||||||
| 
 | 
 | ||||||
|  | - Issue #24839: platform._syscmd_ver raises DeprecationWarning | ||||||
| 
 | 
 | ||||||
| What's New in Python 3.5.0 release candidate 1? | What's New in Python 3.5.0 release candidate 1? | ||||||
| =============================================== | =============================================== | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Steve Dower
						Steve Dower