Kaydet (Commit) 943a6ddc authored tarafından Benjamin Peterson's avatar Benjamin Peterson

simplify code

üst 596d3069
...@@ -6632,10 +6632,8 @@ posix_ftruncate(PyObject *self, PyObject *args) ...@@ -6632,10 +6632,8 @@ posix_ftruncate(PyObject *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
res = ftruncate(fd, length); res = ftruncate(fd, length);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
if (res < 0) { if (res < 0)
posix_error(); return posix_error();
return NULL;
}
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment