mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
This commit is contained in:
parent
a9b2b4be26
commit
43713e5a28
37 changed files with 272 additions and 272 deletions
|
@ -286,7 +286,7 @@ PyObject *args;
|
|||
int iflags;
|
||||
int mode = 0666;
|
||||
|
||||
if ( !PyArg_ParseTuple(args, "s|si", &name, &flags, &mode) )
|
||||
if ( !PyArg_ParseTuple(args, "s|si:open", &name, &flags, &mode) )
|
||||
return NULL;
|
||||
if ( strcmp(flags, "r") == 0 )
|
||||
iflags = O_RDONLY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue