mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	fix compilation on Windows
This commit is contained in:
		
							parent
							
								
									e8e14591eb
								
							
						
					
					
						commit
						0b1bc56bb6
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1360,10 +1360,11 @@ compiler_mod(struct compiler *c, mod_ty mod) | |||
| static int | ||||
| get_ref_type(struct compiler *c, PyObject *name) | ||||
| { | ||||
|     int scope; | ||||
|     if (c->u->u_scope_type == COMPILER_SCOPE_CLASS && | ||||
|         !PyUnicode_CompareWithASCIIString(name, "__class__")) | ||||
|         return CELL; | ||||
|     int scope = PyST_GetScope(c->u->u_ste, name); | ||||
|     scope = PyST_GetScope(c->u->u_ste, name); | ||||
|     if (scope == 0) { | ||||
|         char buf[350]; | ||||
|         PyOS_snprintf(buf, sizeof(buf), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner