6 Nov
2011
6 Nov
'11
7:46 p.m.
2011/11/6 brian.curtin
- - if (!PyArg_ParseTuple(args, "O&O:utime", + PyObject* arg = NULL;
You could set arg = Py_None here.
+ + if (!PyArg_ParseTuple(args, "O&|O:utime", PyUnicode_FSConverter, &opath, &arg)) return NULL; path = PyBytes_AsString(opath); - if (arg == Py_None) { + if (!arg || (arg == Py_None)) {
And then not have to change this. -- Regards, Benjamin