}
close(fd);
- return Py_BuildValue("i", 1);
+ return Py_BuildValue("O", Py_None);
}
#endif /* def linux */
if (rc != 0)
return PyErr_SetFromErrnoWithFilename(PyExc_OSError, path);
- return Py_BuildValue("i", 1);
+ return Py_BuildValue("O", Py_None);
}
#endif /* defined(_ATFILE_SOURCE)
def lutime(path, times):
atime = nsecs_to_timespec(times[0])
mtime = nsecs_to_timespec(times[1])
- return _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime),
- _helpers.AT_SYMLINK_NOFOLLOW)
+ _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime),
+ _helpers.AT_SYMLINK_NOFOLLOW)
def utime(path, times):
atime = nsecs_to_timespec(times[0])
mtime = nsecs_to_timespec(times[1])
- return _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime), 0)
+ _helpers.utimensat(_helpers.AT_FDCWD, path, (atime, mtime), 0)
else:
def lutime(path, times):
return None