diff options
author | Georg Brandl <georg@python.org> | 2009-04-05 13:16:35 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-05 13:16:35 (GMT) |
commit | 517cfdcfd9261bdaf34d054e3d2416abb9f9f930 (patch) | |
tree | 3e01b01c834ed9f20e086803a625cf19f9961249 /Objects/bytearrayobject.c | |
parent | 0610e0808b8cd16137a0859a70bcf47a16da9aa5 (diff) | |
download | cpython-517cfdcfd9261bdaf34d054e3d2416abb9f9f930.zip cpython-517cfdcfd9261bdaf34d054e3d2416abb9f9f930.tar.gz cpython-517cfdcfd9261bdaf34d054e3d2416abb9f9f930.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Objects/bytearrayobject.c')
-rw-r--r-- | Objects/bytearrayobject.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 4921a88..097d933 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -1097,7 +1097,7 @@ bytes_dealloc(PyByteArrayObject *self) { if (self->ob_exports > 0) { PyErr_SetString(PyExc_SystemError, - "deallocated bytearray object has exported buffers"); + "deallocated bytearray object has exported buffers"); PyErr_Print(); } if (self->ob_bytes != 0) { @@ -2691,10 +2691,10 @@ bytes_extend(PyByteArrayObject *self, PyObject *arg) /* Try to determine the length of the argument. 32 is abitrary. */ buf_size = _PyObject_LengthHint(arg, 32); - if (buf_size == -1) { - Py_DECREF(it); - return NULL; - } + if (buf_size == -1) { + Py_DECREF(it); + return NULL; + } bytes_obj = PyByteArray_FromStringAndSize(NULL, buf_size); if (bytes_obj == NULL) @@ -3143,10 +3143,10 @@ Returns the size of B in memory, in bytes"); static PyObject * bytes_sizeof(PyByteArrayObject *self) { - Py_ssize_t res; + Py_ssize_t res; - res = sizeof(PyByteArrayObject) + self->ob_alloc * sizeof(char); - return PyInt_FromSsize_t(res); + res = sizeof(PyByteArrayObject) + self->ob_alloc * sizeof(char); + return PyInt_FromSsize_t(res); } static PySequenceMethods bytes_as_sequence = { |