summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rwxr-xr-xgenerator.py8
-rw-r--r--libvir.c6
-rwxr-xr-xtests/create.py2
-rwxr-xr-xtests/uuid.py2
-rw-r--r--types.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index 5880811..09e4563 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -69,7 +69,7 @@ uninstall-local:
CLEANFILES= $(GENERATED) libvirt.py
else
-all:
+all:
endif
dummy:
diff --git a/generator.py b/generator.py
index 30b03fd..da0d01f 100755
--- a/generator.py
+++ b/generator.py
@@ -186,8 +186,8 @@ class docParser:
str = str + c
if self.in_function == 1:
self.function_cond = str
-
-
+
+
def function(name, desc, ret, args, file, cond):
functions[name] = (desc, ret, args, file, cond)
@@ -750,7 +750,7 @@ def buildWrappers():
if not classes_processed.has_key(tinfo[2]):
classes_list.append(tinfo[2])
classes_processed[tinfo[2]] = ()
-
+
ctypes.append(type)
ctypes_processed[type] = ()
@@ -776,7 +776,7 @@ def buildWrappers():
func = nameFixup(name, "None", file, file)
info = (0, func, name, ret, args, file)
function_classes['None'].append(info)
-
+
classes = open("libvirtclass.py", "w")
txt = open("libvirtclass.txt", "w")
diff --git a/libvir.c b/libvir.c
index e2f7c5b..96555b3 100644
--- a/libvir.c
+++ b/libvir.c
@@ -751,7 +751,7 @@ libvirt_virConnectListDefinedDomains(PyObject *self ATTRIBUTE_UNUSED,
c_retval = virConnectNumOfDefinedDomains(conn);
if (c_retval < 0)
return VIR_PY_NONE;
-
+
if (c_retval) {
names = malloc(sizeof(*names) * c_retval);
if (!names)
@@ -939,7 +939,7 @@ libvirt_virConnectListDefinedNetworks(PyObject *self ATTRIBUTE_UNUSED,
c_retval = virConnectNumOfDefinedNetworks(conn);
if (c_retval < 0)
return VIR_PY_NONE;
-
+
if (c_retval) {
names = malloc(sizeof(*names) * c_retval);
if (!names)
@@ -1090,7 +1090,7 @@ error:
}
py_retval = PyList_New(c_retval);
for (i = 0;i < c_retval;i++) {
- PyList_SetItem(py_retval, i,
+ PyList_SetItem(py_retval, i,
libvirt_longlongWrap((long long) freeMems[i]));
}
free(freeMems);
diff --git a/tests/create.py b/tests/create.py
index cd62928..0da89a9 100755
--- a/tests/create.py
+++ b/tests/create.py
@@ -129,7 +129,7 @@ while i < 30:
okay = 0
t = -1
break;
-
+
if t == 0:
break
diff --git a/tests/uuid.py b/tests/uuid.py
index 605b759..db48e80 100755
--- a/tests/uuid.py
+++ b/tests/uuid.py
@@ -36,6 +36,6 @@ except:
if dom2.name() != name0:
print 'lookup of %s based on UUID brings a different domain %s' % (
name0, dom2.name())
-
+
print "OK"
sys.exit(0)
diff --git a/types.c b/types.c
index c91d8da..eb8353c 100644
--- a/types.c
+++ b/types.c
@@ -45,7 +45,7 @@ libvirt_ulongWrap(unsigned long val)
#endif
ret = PyLong_FromLong(val);
return (ret);
-}
+}
PyObject *
libvirt_longlongWrap(long long val)