[Python-checkins] r69656 - python/branches/io-c/Modules/_bytesio.c
benjamin.peterson
python-checkins at python.org
Mon Feb 16 00:30:22 CET 2009
Author: benjamin.peterson
Date: Mon Feb 16 00:29:48 2009
New Revision: 69656
Log:
braces make this much clearer
Modified:
python/branches/io-c/Modules/_bytesio.c
Modified: python/branches/io-c/Modules/_bytesio.c
==============================================================================
--- python/branches/io-c/Modules/_bytesio.c (original)
+++ python/branches/io-c/Modules/_bytesio.c Mon Feb 16 00:29:48 2009
@@ -148,10 +148,12 @@
static PyObject *
bytesio_get_closed(BytesIOObject *self)
{
- if (self->buf == NULL)
+ if (self->buf == NULL) {
Py_RETURN_TRUE;
- else
+ }
+ else {
Py_RETURN_FALSE;
+ }
}
/* Generic getter for the writable, readable and seekable properties */
More information about the Python-checkins
mailing list