mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Don't use 'set_option()' or 'get_option()' method -- direct attribute access,
or getattr/setattr, is all that's needed.
This commit is contained in:
		
							parent
							
								
									c4537ac9b6
								
							
						
					
					
						commit
						4779cdfae8
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -64,7 +64,7 @@ def run (self): | ||||||
|                   "invalid archive format '%s'" % self.format |                   "invalid archive format '%s'" % self.format | ||||||
| 
 | 
 | ||||||
|         sub_cmd = self.find_peer (cmd_name) |         sub_cmd = self.find_peer (cmd_name) | ||||||
|         sub_cmd.set_option ('format', self.format) |         sub_cmd.format = self.format | ||||||
|         self.run_peer (cmd_name) |         self.run_peer (cmd_name) | ||||||
| 
 | 
 | ||||||
|     # run() |     # run() | ||||||
|  |  | ||||||
|  | @ -79,7 +79,7 @@ def _mutate_outputs (self, has_any, build_cmd, cmd_option, output_dir): | ||||||
| 
 | 
 | ||||||
|         build_cmd = self.find_peer (build_cmd) |         build_cmd = self.find_peer (build_cmd) | ||||||
|         build_files = build_cmd.get_outputs() |         build_files = build_cmd.get_outputs() | ||||||
|         build_dir = build_cmd.get_option (cmd_option) |         build_dir = getattr (build_cmd, cmd_option) | ||||||
| 
 | 
 | ||||||
|         prefix_len = len (build_dir) + len (os.sep) |         prefix_len = len (build_dir) + len (os.sep) | ||||||
|         outputs = [] |         outputs = [] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Greg Ward
						Greg Ward