summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-14 00:47:23 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-14 00:47:23 +0200
commit8413810c46f802490280b0be1beebaaadf1aa9f2 (patch)
tree96a6438fbd87d65b42f5754598c82a584ebf2145 /python
parentdaaa814658b6d2b8e3e2437fcc625096c46395dd (diff)
downloadpython-apt-8413810c46f802490280b0be1beebaaadf1aa9f2.tar.gz
* Remove any trailing whitespace
Diffstat (limited to 'python')
-rw-r--r--python/apt_pkgmodule.cc2
-rw-r--r--python/cache.cc2
-rw-r--r--python/cdrom.cc6
-rw-r--r--python/configuration.cc18
-rw-r--r--python/depcache.cc12
-rw-r--r--python/progress.cc2
-rw-r--r--python/tag.cc12
-rw-r--r--python/tar.cc2
8 files changed, 28 insertions, 28 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc
index 5d0b2c0a..145a2bab 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -481,7 +481,7 @@ extern "C" void initapt_pkg()
if (PyType_Ready(&PkgCdromType) == -1) return;
if (PyType_Ready(&PkgProblemResolverType) == -1) return;
if (PyType_Ready(&PkgActionGroupType) == -1) return;
-
+
// Initialize the module
PyObject *Module = Py_InitModule("apt_pkg",methods);
diff --git a/python/cache.cc b/python/cache.cc
index 4db097c7..31d8c45d 100644
--- a/python/cache.cc
+++ b/python/cache.cc
@@ -951,7 +951,7 @@ PyObject *TmpGetCache(PyObject *Self,PyObject *Args)
progress.setCallbackInst(pyCallbackInst);
if (Cache->Open(progress,false) == false)
return HandleErrors();
- }
+ }
else {
OpTextProgress Prog;
if (Cache->Open(Prog,false) == false)
diff --git a/python/cdrom.cc b/python/cdrom.cc
index 1278d6b7..0816d93e 100644
--- a/python/cdrom.cc
+++ b/python/cdrom.cc
@@ -84,16 +84,16 @@ PyTypeObject PkgCdromType =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"Cdrom Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
PkgCdromMethods, // tp_methods
};
diff --git a/python/configuration.cc b/python/configuration.cc
index a95ac029..b4adf357 100644
--- a/python/configuration.cc
+++ b/python/configuration.cc
@@ -498,16 +498,16 @@ PyTypeObject ConfigurationType =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"Configuration Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
CnfMethods, // tp_methods
};
@@ -532,16 +532,16 @@ PyTypeObject ConfigurationPtrType =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"ConfigurationPtr Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
CnfMethods, // tp_methods
};
@@ -566,16 +566,16 @@ PyTypeObject ConfigurationSubType =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"ConfigurationSub Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
CnfMethods, // tp_methods
};
diff --git a/python/depcache.cc b/python/depcache.cc
index b23eecd9..2c73a1a9 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -769,16 +769,16 @@ PyTypeObject PkgProblemResolverType =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"ProblemResolver Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
PkgProblemResolverMethods, // tp_methods
};
@@ -825,16 +825,16 @@ PyTypeObject PkgActionGroupType =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"ActionGroup Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
PkgActionGroupMethods, // tp_methods
};
diff --git a/python/progress.cc b/python/progress.cc
index c5a1c138..bec40ce9 100644
--- a/python/progress.cc
+++ b/python/progress.cc
@@ -185,7 +185,7 @@ bool PyFetchProgress::Pulse(pkgAcquire * Owner)
bool res = true;
if(!PyArg_Parse(result, "b", &res))
{
- // most of the time the user who subclasses the pulse()
+ // most of the time the user who subclasses the pulse()
// method forgot to add a return {True,False} so we just
// assume he wants a True
return true;
diff --git a/python/tag.cc b/python/tag.cc
index baf97b59..cdea3e03 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -401,16 +401,16 @@ PyTypeObject TagSecType =
0, // tp_hash
0, // tp_call
TagSecStr, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"TagSection Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
TagSecMethods // tp_methods
};
@@ -459,16 +459,16 @@ PyTypeObject TagFileType =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ 0, // tp_getattro
0, // tp_setattro
- 0, // tp_as_buffer
+ 0, // tp_as_buffer
Py_TPFLAGS_DEFAULT, // tp_flags
"TagFile Object", // tp_doc
0, // tp_traverse
0, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
- 0, // tp_iter
+ 0, // tp_iter
0, // tp_iternext
TagFileMethods, // tp_methods
0, // tp_members
diff --git a/python/tar.cc b/python/tar.cc
index f0d57823..217554c2 100644
--- a/python/tar.cc
+++ b/python/tar.cc
@@ -111,7 +111,7 @@ PyObject *tarExtract(PyObject *Self,PyObject *Args)
int fileno = PyObject_AsFileDescriptor(File);
if (fileno == -1)
return 0;
-
+
FileFd Fd(fileno,false);
ExtractTar Tar(Fd,0xFFFFFFFF,Comp);
if (_error->PendingError() == true)