summaryrefslogtreecommitdiff
path: root/python/generic.cc
diff options
context:
space:
mode:
authorBen Finney <ben@benfinney.id.au>2008-05-16 14:58:00 +1000
committerBen Finney <ben@benfinney.id.au>2008-05-16 14:58:00 +1000
commitb147f1846cd26ab25ad925105f52421992395918 (patch)
treef1cb14ef290ab7ef91668b1b2a6f1a1bf41d3329 /python/generic.cc
parent44faadf294230dc6384b309b06089520d562f199 (diff)
downloadpython-apt-b147f1846cd26ab25ad925105f52421992395918.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'python/generic.cc')
-rw-r--r--python/generic.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/generic.cc b/python/generic.cc
index 044569b9..7309d978 100644
--- a/python/generic.cc
+++ b/python/generic.cc
@@ -4,7 +4,7 @@
/* ######################################################################
generic - Some handy functions to make integration a tad simpler
-
+
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
@@ -24,10 +24,10 @@ PyObject *HandleErrors(PyObject *Res)
_error->Discard();
return Res;
}
-
+
if (Res != 0)
Py_DECREF(Res);
-
+
string Err;
int errcnt = 0;
while (_error->empty() == false)
@@ -55,7 +55,7 @@ const char **ListToCharChar(PyObject *List,bool NullTerm)
int Length = PySequence_Length(List);
const char **Res = new const char *[Length + (NullTerm == true?1:0)];
for (int I = 0; I != Length; I++)
- {
+ {
PyObject *Itm = PySequence_GetItem(List,I);
if (PyString_Check(Itm) == 0)
{
@@ -80,12 +80,12 @@ PyObject *CharCharToList(const char **List,unsigned long Size)
for (const char **I = List; *I != 0; I++)
Size++;
}
-
+
// Convert the whole configuration space into a list
PyObject *PList = PyList_New(Size);
for (unsigned long I = 0; I != Size; I++, List++)
PyList_SetItem(PList,I,PyString_FromString(*List));
-
+
return PList;
}
/*}}}*/