mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	strengthen condition and add assertion
This commit is contained in:
		
							parent
							
								
									ebe83f9875
								
							
						
					
					
						commit
						a8a38b8e4f
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -670,7 +670,8 @@ compiler_scope_qualname(struct compiler *c, identifier scope_name) | ||||||
|         return NULL; |         return NULL; | ||||||
| 
 | 
 | ||||||
|     stack_size = PyList_GET_SIZE(c->c_stack); |     stack_size = PyList_GET_SIZE(c->c_stack); | ||||||
|     global_scope = stack_size <= 1; |     assert(stack_size >= 1); | ||||||
|  |     global_scope = stack_size == 1; | ||||||
|     if (scope_name != NULL && !global_scope) { |     if (scope_name != NULL && !global_scope) { | ||||||
|         int scope; |         int scope; | ||||||
|         PyObject *mangled; |         PyObject *mangled; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson