mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Remove the last three uses of PyArg_GetInt() from the source.
This commit is contained in:
		
							parent
							
								
									4c4d5ce78a
								
							
						
					
					
						commit
						fe28fa05e9
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -522,7 +522,7 @@ BUILD_FUNC_DEF_2(PySocketSock_setblocking,PySocketSockObject*,s,PyObject*,args) | |||
| #ifndef MS_WINDOWS | ||||
| 	int delay_flag; | ||||
| #endif | ||||
| 	if (!PyArg_GetInt(args, &block)) | ||||
| 	if (!PyArg_Parse(args, "i", &block)) | ||||
| 		return NULL; | ||||
| 	Py_BEGIN_ALLOW_THREADS | ||||
| #ifndef MS_WINDOWS | ||||
|  | @ -766,7 +766,7 @@ BUILD_FUNC_DEF_2(PySocketSock_listen,PySocketSockObject *,s, PyObject *,args) | |||
| { | ||||
| 	int backlog; | ||||
| 	int res; | ||||
| 	if (!PyArg_GetInt(args, &backlog)) | ||||
| 	if (!PyArg_Parse(args, "i", &backlog)) | ||||
| 		return NULL; | ||||
| 	Py_BEGIN_ALLOW_THREADS | ||||
| 	if (backlog < 1) | ||||
|  | @ -938,7 +938,7 @@ BUILD_FUNC_DEF_2(PySocketSock_shutdown,PySocketSockObject *,s, PyObject *,args) | |||
| { | ||||
| 	int how; | ||||
| 	int res; | ||||
| 	if (!PyArg_GetInt(args, &how)) | ||||
| 	if (!PyArg_Parse(args, "i", &how)) | ||||
| 		return NULL; | ||||
| 	Py_BEGIN_ALLOW_THREADS | ||||
| 	res = shutdown(s->sock_fd, how); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum