Fix indentation

This commit is contained in:
Antoine Pitrou 2011-01-02 20:06:12 +00:00
parent 01a196a076
commit da4a5f0b37
1 changed files with 9 additions and 9 deletions

View File

@ -7305,7 +7305,7 @@ posix_tempnam(PyObject *self, PyObject *args)
name = tempnam(dir, pfx);
#endif
if (name == NULL)
return PyErr_NoMemory();
return PyErr_NoMemory();
result = PyString_FromString(name);
free(name);
return result;
@ -7329,7 +7329,7 @@ posix_tmpfile(PyObject *self, PyObject *noargs)
fp = tmpfile();
if (fp == NULL)
return posix_error();
return posix_error();
return PyFile_FromFile(fp, "<tmpfile>", "w+b", fclose);
}
#endif
@ -7360,16 +7360,16 @@ posix_tmpnam(PyObject *self, PyObject *noargs)
name = tmpnam(buffer);
#endif
if (name == NULL) {
PyObject *err = Py_BuildValue("is", 0,
PyObject *err = Py_BuildValue("is", 0,
#ifdef USE_TMPNAM_R
"unexpected NULL from tmpnam_r"
"unexpected NULL from tmpnam_r"
#else
"unexpected NULL from tmpnam"
"unexpected NULL from tmpnam"
#endif
);
PyErr_SetObject(PyExc_OSError, err);
Py_XDECREF(err);
return NULL;
);
PyErr_SetObject(PyExc_OSError, err);
Py_XDECREF(err);
return NULL;
}
return PyString_FromString(buffer);
}