Fixed spaces/tabs mixup.

This commit is contained in:
Virgil Dupras 2010-04-21 10:14:46 +02:00
parent 8313b0eebb
commit 06f03e14b4
1 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@ static PyObject* send2trash_osx_send(PyObject *self, PyObject *args)
return NULL;
}
FSPathMakeRefWithOptions(utf8_chars, kFSPathMakeRefDoNotFollowLeafSymlink, &fp, NULL);
op_result = FSMoveObjectToTrashSync(&fp, NULL, kFSFileOperationDefaultOptions);
PyMem_Free(utf8_chars);
if (op_result != noErr) {
FSPathMakeRefWithOptions(utf8_chars, kFSPathMakeRefDoNotFollowLeafSymlink, &fp, NULL);
op_result = FSMoveObjectToTrashSync(&fp, NULL, kFSFileOperationDefaultOptions);
PyMem_Free(utf8_chars);
if (op_result != noErr) {
PyErr_SetString(PyExc_OSError, GetMacOSStatusCommentString(op_result));
return NULL;
}