mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove PyArg_NoArgs() and PyArg_GetInt()
This commit is contained in:
parent
e7086d409e
commit
a10f52e3b2
3 changed files with 2 additions and 11 deletions
|
@ -79,7 +79,7 @@ static PyObject *canon(char *path)
|
|||
}
|
||||
|
||||
static PyObject *riscos_getcwd(PyObject *self,PyObject *args)
|
||||
{ if(!PyArg_NoArgs(args)) return NULL;
|
||||
{
|
||||
return canon("@");
|
||||
}
|
||||
|
||||
|
@ -354,7 +354,7 @@ static PyMethodDef riscos_methods[] = {
|
|||
{"system", riscos_system},
|
||||
{"rmdir", riscos_remove},
|
||||
{"chdir", riscos_chdir},
|
||||
{"getcwd", riscos_getcwd},
|
||||
{"getcwd", riscos_getcwd, METH_NOARGS},
|
||||
{"expand", riscos_expand},
|
||||
{"mkdir", riscos_mkdir,1},
|
||||
{"listdir", riscos_listdir},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue