summaryrefslogtreecommitdiffstats
path: root/RISCOS/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 09:00:00 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 09:00:00 (GMT)
commita10f52e3b2f028bb9d5e232f067d42cd74b95184 (patch)
tree6c0809ad4318733960fb2ee0f3e96df17aa401be /RISCOS/Modules
parente7086d409e846254df5cc89b505cbd0804d45c5e (diff)
downloadcpython-a10f52e3b2f028bb9d5e232f067d42cd74b95184.zip
cpython-a10f52e3b2f028bb9d5e232f067d42cd74b95184.tar.gz
cpython-a10f52e3b2f028bb9d5e232f067d42cd74b95184.tar.bz2
Remove PyArg_NoArgs() and PyArg_GetInt()
Diffstat (limited to 'RISCOS/Modules')
-rw-r--r--RISCOS/Modules/riscosmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/RISCOS/Modules/riscosmodule.c b/RISCOS/Modules/riscosmodule.c
index 55f189d..2ad4499 100644
--- a/RISCOS/Modules/riscosmodule.c
+++ b/RISCOS/Modules/riscosmodule.c
@@ -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},