[PATCH 14/14] pytdb: Strip trailing whitespace
Kirill Smelkov
kirr at landau.phys.spbu.ru
Sat Oct 2 07:43:53 MDT 2010
Signed-off-by: Kirill Smelkov <kirr at landau.phys.spbu.ru>
---
lib/tdb/pytdb.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/tdb/pytdb.c b/lib/tdb/pytdb.c
index 6b66fd3..7782f1e 100644
--- a/lib/tdb/pytdb.c
+++ b/lib/tdb/pytdb.c
@@ -1,4 +1,4 @@
-/*
+/*
Unix SMB/CIFS implementation.
Python interface to tdb.
@@ -9,7 +9,7 @@
** NOTE! The following LGPL license applies to the tdb
** library. This does NOT imply that all of Samba is released
** under the LGPL
-
+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
@@ -46,7 +46,7 @@ PyAPI_DATA(PyTypeObject) PyTdb;
static void PyErr_SetTDBError(TDB_CONTEXT *tdb)
{
- PyErr_SetObject(PyExc_RuntimeError,
+ PyErr_SetObject(PyExc_RuntimeError,
Py_BuildValue("(i,s)", tdb_error(tdb), tdb_errorstr(tdb)));
}
@@ -63,7 +63,7 @@ static PyObject *__PyString_FromTDB_DATA(TDB_DATA data, bool release)
if (data.dptr == NULL && data.dsize == 0) {
Py_RETURN_NONE;
} else {
- PyObject *ret = PyString_FromStringAndSize((const char *)data.dptr,
+ PyObject *ret = PyString_FromStringAndSize((const char *)data.dptr,
data.dsize);
if (release)
free(data.dptr);
@@ -500,7 +500,7 @@ PyTypeObject PyTdbIterator = {
static PyObject *tdb_object_iter(PyTdbObject *self)
{
- PyTdbIteratorObject *ret;
+ PyTdbIteratorObject *ret;
ret = PyObject_New(PyTdbIteratorObject, &PyTdbIterator);
if (!ret)
@@ -672,7 +672,7 @@ static PyObject *obj_check(PyTdbObject *self, PyObject *args)
}
static PyMethodDef tdb_object_methods[] = {
- { "transaction_cancel", (PyCFunction)obj_transaction_cancel, METH_NOARGS,
+ { "transaction_cancel", (PyCFunction)obj_transaction_cancel, METH_NOARGS,
"S.transaction_cancel() -> None\n"
"Cancel the currently active transaction." },
{ "transaction_commit", (PyCFunction)obj_transaction_commit, METH_NOARGS,
@@ -849,9 +849,9 @@ static int obj_setitem(PyTdbObject *self, PyObject *key, PyObject *value)
tkey = PyString_AsTDB_DATA(key);
- if (value == NULL) {
+ if (value == NULL) {
ret = tdb_delete(self->ctx, tkey);
- } else {
+ } else {
if (!PyString_Check(value)) {
PyErr_SetString(PyExc_TypeError, "Expected string as value");
return -1;
@@ -865,7 +865,7 @@ static int obj_setitem(PyTdbObject *self, PyObject *key, PyObject *value)
if (ret != 0) {
PyErr_SetTDBError(self->ctx);
return -1;
- }
+ }
return ret;
}
--
1.7.3.1.50.g1e633
More information about the samba-technical
mailing list