[Python-checkins] r87645 - python/branches/release27-maint/Modules/posixmodule.c
antoine.pitrou
python-checkins at python.org
Sun Jan 2 21:06:13 CET 2011
Author: antoine.pitrou
Date: Sun Jan 2 21:06:12 2011
New Revision: 87645
Log:
Fix indentation
Modified:
python/branches/release27-maint/Modules/posixmodule.c
Modified: python/branches/release27-maint/Modules/posixmodule.c
==============================================================================
--- python/branches/release27-maint/Modules/posixmodule.c (original)
+++ python/branches/release27-maint/Modules/posixmodule.c Sun Jan 2 21:06:12 2011
@@ -7305,7 +7305,7 @@
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 @@
fp = tmpfile();
if (fp == NULL)
- return posix_error();
+ return posix_error();
return PyFile_FromFile(fp, "<tmpfile>", "w+b", fclose);
}
#endif
@@ -7360,16 +7360,16 @@
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);
}
More information about the Python-checkins
mailing list