summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-04-14 20:53:13 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-04-14 20:53:13 (GMT)
commite0313f20c0a2e394b8e9606f415316f73c840a16 (patch)
tree5dde149b4242b53fcb075452928a5fe7596c0267 /Objects/bytesobject.c
parent8dcdb25d58f31ec716ddba662294465293c520d9 (diff)
downloadcpython-e0313f20c0a2e394b8e9606f415316f73c840a16.zip
cpython-e0313f20c0a2e394b8e9606f415316f73c840a16.tar.gz
cpython-e0313f20c0a2e394b8e9606f415316f73c840a16.tar.bz2
Re-indented bytes_getbuffer() and bytes_releasebuffer() to 4-space
indents.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 66903a7..e32331d1 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -52,27 +52,27 @@ _getbytevalue(PyObject* arg, int *value)
static int
bytes_getbuffer(PyBytesObject *obj, Py_buffer *view, int flags)
{
- int ret;
- void *ptr;
- if (view == NULL) {
- obj->ob_exports++;
- return 0;
- }
- if (obj->ob_bytes == NULL)
- ptr = "";
- else
- ptr = obj->ob_bytes;
- ret = PyBuffer_FillInfo(view, ptr, Py_SIZE(obj), 0, flags);
- if (ret >= 0) {
- obj->ob_exports++;
- }
- return ret;
+ int ret;
+ void *ptr;
+ if (view == NULL) {
+ obj->ob_exports++;
+ return 0;
+ }
+ if (obj->ob_bytes == NULL)
+ ptr = "";
+ else
+ ptr = obj->ob_bytes;
+ ret = PyBuffer_FillInfo(view, ptr, Py_SIZE(obj), 0, flags);
+ if (ret >= 0) {
+ obj->ob_exports++;
+ }
+ return ret;
}
static void
bytes_releasebuffer(PyBytesObject *obj, Py_buffer *view)
{
- obj->ob_exports--;
+ obj->ob_exports--;
}
static Py_ssize_t