summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2013-11-19 15:16:27 -0700
committerEric Blake <eblake@redhat.com>2013-11-20 09:14:55 -0700
commit9e8b8a824d4b0456640f9069d5603d8b1d42c867 (patch)
tree8997cbf303e83da5f191dbe1c524c0a88e93235c
parent34b7679331e133336a708233853f2ac7d8049f58 (diff)
downloadlibvirt-python-v9-9e8b8a824d4b0456640f9069d5603d8b1d42c867.zip
libvirt-python-v9-9e8b8a824d4b0456640f9069d5603d8b1d42c867.tar.gz
libvirt-python-v9-9e8b8a824d4b0456640f9069d5603d8b1d42c867.tar.xz
maint: fix comma style issues: python
Most of our code base uses space after comma but not before; fix the remaining uses before adding a syntax check. * python/libvirt-override.c: Consistently use commas. Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--libvirt-override.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 747c877..6546dd1 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -461,7 +461,7 @@ libvirt_virDomainBlockStats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *info;
if (!PyArg_ParseTuple(args, (char *)"Oz:virDomainBlockStats",
- &pyobj_domain,&path))
+ &pyobj_domain, &path))
return NULL;
domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
@@ -676,7 +676,7 @@ libvirt_virDomainInterfaceStats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
PyObject *info;
if (!PyArg_ParseTuple(args, (char *)"Oz:virDomainInterfaceStats",
- &pyobj_domain,&path))
+ &pyobj_domain, &path))
return NULL;
domain = (virDomainPtr) PyvirDomain_Get(pyobj_domain);
@@ -4924,12 +4924,12 @@ libvirt_virConnectDomainEventCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
virDomainRef(dom);
pyobj_dom = libvirt_virDomainPtrWrap(dom);
pyobj_dom_args = PyTuple_New(2);
- if (PyTuple_SetItem(pyobj_dom_args, 0, pyobj_conn_inst)!=0) {
- DEBUG("%s error creating tuple",__FUNCTION__);
+ if (PyTuple_SetItem(pyobj_dom_args, 0, pyobj_conn_inst) != 0) {
+ DEBUG("%s error creating tuple", __FUNCTION__);
goto cleanup;
}
- if (PyTuple_SetItem(pyobj_dom_args, 1, pyobj_dom)!=0) {
- DEBUG("%s error creating tuple",__FUNCTION__);
+ if (PyTuple_SetItem(pyobj_dom_args, 1, pyobj_dom) != 0) {
+ DEBUG("%s error creating tuple", __FUNCTION__);
goto cleanup;
}
Py_INCREF(pyobj_conn_inst);