equal
deleted
inserted
replaced
1102 struct statfs buf; |
1102 struct statfs buf; |
1103 if (!PyArg_ParseTuple(args, "s", &path)) |
1103 if (!PyArg_ParseTuple(args, "s", &path)) |
1104 return NULL; |
1104 return NULL; |
1105 |
1105 |
1106 memset(&buf, 0, sizeof(buf)); |
1106 memset(&buf, 0, sizeof(buf)); |
1107 const char *type = getfstype(path, &buf); |
1107 return Py_BuildValue("s", getfstype(path, &buf)); |
1108 if (type == NULL) |
|
1109 Py_RETURN_NONE; |
|
1110 |
|
1111 PyObject *result = Py_BuildValue("s", type); |
|
1112 return result; |
|
1113 } |
1108 } |
1114 #endif /* defined(HAVE_LINUX_STATFS) || defined(HAVE_BSD_STATFS) */ |
1109 #endif /* defined(HAVE_LINUX_STATFS) || defined(HAVE_BSD_STATFS) */ |
1115 |
1110 |
1116 #endif /* ndef _WIN32 */ |
1111 #endif /* ndef _WIN32 */ |
1117 |
1112 |