Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv24078/TMDA
Modified Files:
Pending.py
Log Message:
Faster implementation of listPendingIds().
Index: Pending.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Pending.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Pending.py 25 Nov 2002 19:31:56 -0000 1.4
+++ Pending.py 26 Nov 2002 06:47:57 -0000 1.5
@@ -147,10 +147,8 @@
def listPendingIds(self):
"""Return the list of still pending (i.e, not yet confirmed or
released) messages."""
- return filter(lambda x:
- x not in self.listDeliveredIds(), self.listIds()) + \
- filter(lambda x:
- x not in self.listIds(), self.listDeliveredIds())
+ return [i for i in self.listIds()
+ if not (i.endswith(',C') or i.endswith(',R'))]
## Cache related functions (-C option)
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs