mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	gh-99300: Use Py_NewRef() in Modules/ directory (#99468)
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in test C files of the Modules/ directory.
This commit is contained in:
		
							parent
							
								
									9a7e9f9921
								
							
						
					
					
						commit
						c340cbb7f7
					
				
					 10 changed files with 92 additions and 173 deletions
				
			
		| 
						 | 
				
			
			@ -291,8 +291,7 @@ _winapi_Overlapped_getbuffer_impl(OverlappedObject *self)
 | 
			
		|||
        return NULL;
 | 
			
		||||
    }
 | 
			
		||||
    res = self->read_buffer ? self->read_buffer : Py_None;
 | 
			
		||||
    Py_INCREF(res);
 | 
			
		||||
    return res;
 | 
			
		||||
    return Py_NewRef(res);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*[clinic input]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue