mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	When representing #includes as imports, do from MOD import *.
This commit is contained in:
		
							parent
							
								
									4f85bf3311
								
							
						
					
					
						commit
						f2f8c51ae6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -135,7 +135,7 @@ def process(fp, outfp, env = {}): | |||
|             a, b = regs[1] | ||||
|             filename = line[a:b] | ||||
|             if importable.has_key(filename): | ||||
|                 outfp.write('import %s\n' % importable[filename]) | ||||
|                 outfp.write('from %s import *\n' % importable[filename]) | ||||
|             elif not filedict.has_key(filename): | ||||
|                 filedict[filename] = None | ||||
|                 inclfp = None | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis