mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	#3573: idle now doesn't hungs if launched as: idle -e <directory>
Patch by Guilherme Polo.
This commit is contained in:
		
							parent
							
								
									669b755c92
								
							
						
					
					
						commit
						6b6e437626
					
				
					 2 changed files with 9 additions and 2 deletions
				
			
		|  | @ -1403,8 +1403,10 @@ def main(): | |||
| 
 | ||||
|     if enable_edit: | ||||
|         if not (cmd or script): | ||||
|             for filename in args: | ||||
|                 flist.open(filename) | ||||
|             for filename in args[:]: | ||||
|                 if flist.open(filename) is None: | ||||
|                     # filename is a directory actually, disconsider it | ||||
|                     args.remove(filename) | ||||
|             if not args: | ||||
|                 flist.new() | ||||
|     if enable_shell: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew Svetlov
						Andrew Svetlov