mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Remove unused convenience routine.
This commit is contained in:
		
							parent
							
								
									14368158c2
								
							
						
					
					
						commit
						771f9146d5
					
				
					 1 changed files with 0 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -829,25 +829,6 @@ statichere PyTypeObject Decomptype = {
 | 
			
		|||
    0,                              /*tp_as_mapping*/
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* The following insint() routine was blatantly ripped off from
 | 
			
		||||
   socketmodule.c */
 | 
			
		||||
 | 
			
		||||
/* Convenience routine to export an integer value.
 | 
			
		||||
   For simplicity, errors (which are unlikely anyway) are ignored. */
 | 
			
		||||
static void
 | 
			
		||||
insint(PyObject *d, char *name, int value)
 | 
			
		||||
{
 | 
			
		||||
	PyObject *v = PyInt_FromLong((long) value);
 | 
			
		||||
	if (v == NULL) {
 | 
			
		||||
		/* Don't bother reporting this error */
 | 
			
		||||
		PyErr_Clear();
 | 
			
		||||
	}
 | 
			
		||||
	else {
 | 
			
		||||
		PyDict_SetItemString(d, name, v);
 | 
			
		||||
		Py_DECREF(v);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static char zlib_module_documentation[]=
 | 
			
		||||
"The functions in this module allow compression and decompression using the\n"
 | 
			
		||||
"zlib library, which is based on GNU zip.\n"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue