mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	The commands module has been removed. The getoutput() and getstatusoutput()
functions have been added to the subprocess module. The fixer for this still needs to be written and proper Py3K deprecation warnings for the functions that didn't make the transition need to be done in 2.6. This is all part of trying to close issue #2872.
This commit is contained in:
		
							parent
							
								
									35af8d4218
								
							
						
					
					
						commit
						a23810f86a
					
				
					 13 changed files with 140 additions and 196 deletions
				
			
		|  | @ -4,7 +4,7 @@ | |||
| from Tkinter import * | ||||
| from string import splitfields | ||||
| from string import split | ||||
| import commands | ||||
| import subprocess | ||||
| import os | ||||
| 
 | ||||
| class BarButton(Menubutton): | ||||
|  | @ -31,7 +31,7 @@ def kill(self, selected): | |||
|         self.do_update() | ||||
|     def do_update(self): | ||||
|         name, option, column = self.format_list[self.format.get()] | ||||
|         s = commands.getoutput('ps -w ' + option) | ||||
|         s = subprocess.getoutput('ps -w ' + option) | ||||
|         list = splitfields(s, '\n') | ||||
|         self.header.set(list[0]) | ||||
|         del list[0] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon