mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	And some more cleanup.
This commit is contained in:
		
							parent
							
								
									106203c6e0
								
							
						
					
					
						commit
						8622e93eab
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -2154,7 +2154,7 @@ ast_for_import_stmt(struct compiling *c, const node *n) | |||
| 
 | ||||
|     REQ(n, import_stmt); | ||||
|     n = CHILD(n, 0); | ||||
|     if (STR(CHILD(n, 0))[0] == 'i') { /* import */ | ||||
|     if (TYPE(n) == import_name) { | ||||
|         n = CHILD(n, 1); | ||||
| 	REQ(n, dotted_as_names); | ||||
| 	aliases = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); | ||||
|  | @ -2168,7 +2168,7 @@ ast_for_import_stmt(struct compiling *c, const node *n) | |||
|         } | ||||
| 	return Import(aliases, LINENO(n), c->c_arena); | ||||
|     } | ||||
|     else if (STR(CHILD(n, 0))[0] == 'f') { /* from */ | ||||
|     else if (TYPE(n) == import_from) { | ||||
|         int n_children; | ||||
| 	int lineno = LINENO(n); | ||||
| 	alias_ty mod = alias_for_import_name(c, CHILD(n, 1)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thomas Wouters
						Thomas Wouters