summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-02 20:06:12 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-02 20:06:12 (GMT)
commitda4a5f0b3770bed0f463e325326d9689710596d9 (patch)
tree7a101a676f2e1760f74fd3aec9f45ace96d17109 /Modules/posixmodule.c
parent01a196a07696ff2f7b08afda37f9c0b0b4e642ce (diff)
downloadcpython-da4a5f0b3770bed0f463e325326d9689710596d9.zip
cpython-da4a5f0b3770bed0f463e325326d9689710596d9.tar.gz
cpython-da4a5f0b3770bed0f463e325326d9689710596d9.tar.bz2
Fix indentation
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index fcc73ad..b1242dd 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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);
}