This is an automated email from the git hooks/post-receive script.
nsoffer pushed a commit to branch master
in repository sanlock.
commit 59367ebaea8d37bc34173e3586d898e0d969bb0f
Author: Nir Soffer <nsoffer(a)redhat.com>
AuthorDate: Fri Jun 14 23:34:06 2019 +0300
python: Unify indentation
Some tabs sneaked into the module before we added the vim modeline. Some
Py_BuildValue calls used too much indentation.
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
python/sanlock.c | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/python/sanlock.c b/python/sanlock.c
index 556627c..12e2195 100644
--- a/python/sanlock.c
+++ b/python/sanlock.c
@@ -216,13 +216,13 @@ add_sector_flag(int sector, uint32_t *flags)
switch (sector) {
case SECTOR_SIZE_512:
*flags |= SANLK_LSF_SECTOR512;
- break;
+ break;
case SECTOR_SIZE_4K:
*flags |= SANLK_LSF_SECTOR4K;
- break;
+ break;
default:
- PyErr_Format(PyExc_ValueError, "Invalid sector value: %d", sector);
- return -1;
+ PyErr_Format(PyExc_ValueError, "Invalid sector value: %d", sector);
+ return -1;
}
return 0;
}
@@ -240,19 +240,19 @@ add_align_flag(long align, uint32_t *flags)
switch (align) {
case ALIGNMENT_1M:
*flags |= SANLK_RES_ALIGN1M;
- break;
+ break;
case ALIGNMENT_2M:
*flags |= SANLK_RES_ALIGN2M;
- break;
+ break;
case ALIGNMENT_4M:
*flags |= SANLK_RES_ALIGN4M;
- break;
+ break;
case ALIGNMENT_8M:
*flags |= SANLK_RES_ALIGN8M;
- break;
+ break;
default:
- PyErr_Format(PyExc_ValueError, "Invalid align value: %ld", align);
- return -1;
+ PyErr_Format(PyExc_ValueError, "Invalid align value: %ld", align);
+ return -1;
}
return 0;
}
@@ -613,12 +613,12 @@ py_read_lockspace(PyObject *self __unused, PyObject *args, PyObject
*keywds)
/* fill the information dictionary */
ls_info = Py_BuildValue(
#if PY_MAJOR_VERSION == 2
- "{s:s,s:I}",
+ "{s:s,s:I}",
#else
- "{s:y,s:I}",
+ "{s:y,s:I}",
#endif
- "lockspace", ls.name,
- "iotimeout", io_timeout);
+ "lockspace", ls.name,
+ "iotimeout", io_timeout);
if (ls_info == NULL)
goto finally;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date