diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-01-20 15:33:21 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-01-20 15:33:21 +1100 |
commit | c6ef3c5eda10e93d41ed7de69fed5b28fe41f8a0 (patch) | |
tree | 6f8f2c1f05b64490a4f00eba8bccd479fa8029df /lang | |
parent | 4760aac2b234ec013ff8afa6ac49599b3e9d04a2 (diff) | |
download | mongo-c6ef3c5eda10e93d41ed7de69fed5b28fe41f8a0.tar.gz |
whitespace
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/wiredtiger.i | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lang/python/wiredtiger.i b/lang/python/wiredtiger.i index 670486a541d..31dc159410b 100644 --- a/lang/python/wiredtiger.i +++ b/lang/python/wiredtiger.i @@ -57,7 +57,7 @@ from packing import pack, unpack } %typemap(in, numinputs=0) WT_EVENT_HANDLER * %{ - $1 = &pyApiEventHandler; + $1 = &pyApiEventHandler; %} /* Set the return value to the returned connection, session, or cursor */ @@ -528,8 +528,8 @@ typedef int int_void; %extend __wt_session { int log_printf(const char *msg) { - return self->log_printf(self, "%s", msg); - } + return self->log_printf(self, "%s", msg); + } int _freecb() { return (sessionFreeHandler(self)); @@ -601,7 +601,7 @@ writeToPythonStream(const char *streamname, const char *message) strcpy(&msg[msglen], "\n"); /* Acquire python Global Interpreter Lock. Otherwise can segfault. */ - SWIG_PYTHON_THREAD_BEGIN_BLOCK; + SWIG_PYTHON_THREAD_BEGIN_BLOCK; ret = 1; if ((sys = PyImport_ImportModule("sys")) == NULL) @@ -617,7 +617,7 @@ writeToPythonStream(const char *streamname, const char *message) ret = 0; err: /* Release python Global Interpreter Lock */ - SWIG_PYTHON_THREAD_END_BLOCK; + SWIG_PYTHON_THREAD_END_BLOCK; if (arglist) Py_XDECREF(arglist); @@ -656,11 +656,11 @@ pythonClose(PY_CALLBACK *pcb) { int ret; - /* - * Ensure the global interpreter lock is held - so that Python - * doesn't shut down threads while we use them. - */ - SWIG_PYTHON_THREAD_BEGIN_BLOCK; + /* + * Ensure the global interpreter lock is held - so that Python + * doesn't shut down threads while we use them. + */ + SWIG_PYTHON_THREAD_BEGIN_BLOCK; ret = 0; if (PyObject_SetAttrString(pcb->pyobj, "this", Py_None) == -1) { @@ -669,7 +669,7 @@ pythonClose(PY_CALLBACK *pcb) } Py_XDECREF(pcb->pyobj); - SWIG_PYTHON_THREAD_END_BLOCK; + SWIG_PYTHON_THREAD_END_BLOCK; return (ret); } |