mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Revert previous code elimination, 'filename' is needed.
This commit is contained in:
		
							parent
							
								
									2618c7fadc
								
							
						
					
					
						commit
						0cd233f487
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -53,7 +53,7 @@ def __init__(self, editwin): | ||||||
|         self.flist = self.editwin.flist |         self.flist = self.editwin.flist | ||||||
|         self.root = self.flist.root |         self.root = self.flist.root | ||||||
| 
 | 
 | ||||||
|     def check_module_event(self, event=None): |     def check_module_event(self, event): | ||||||
|         filename = self.getfilename() |         filename = self.getfilename() | ||||||
|         if not filename: |         if not filename: | ||||||
|             return |             return | ||||||
|  | @ -133,7 +133,12 @@ def run_module_event(self, event): | ||||||
|         add that directory to its sys.path if not already included. |         add that directory to its sys.path if not already included. | ||||||
| 
 | 
 | ||||||
|         """ |         """ | ||||||
|         code = self.check_module_event(event) |         filename = self.getfilename() | ||||||
|  |         if not filename: | ||||||
|  |             return | ||||||
|  |         if not self.tabnanny(filename): | ||||||
|  |             return | ||||||
|  |         code = self.checksyntax(filename) | ||||||
|         if not code: |         if not code: | ||||||
|             return |             return | ||||||
|         shell = self.shell |         shell = self.shell | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kurt B. Kaiser
						Kurt B. Kaiser