[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Use list.pop where apprpriate; fix unit test failure



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv12559/lib/mixminion/server

Modified Files:
	MMTPServer.py 
Log Message:
Use list.pop where apprpriate; fix unit test failure

Index: MMTPServer.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/MMTPServer.py,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- MMTPServer.py	7 Feb 2004 07:25:14 -0000	1.77
+++ MMTPServer.py	15 Feb 2004 23:25:34 -0000	1.78
@@ -637,8 +637,7 @@
            This function should only be called from the main thread.
         """
         while len(self.clientConByAddr) < self.maxClientConnections and self.pendingPackets:
-            args = self.pendingPackets[0]
-            del self.pendingPackets[0]
+            args = self.pendingPackets.pop(0)
             LOG.debug("Sending %s delayed packets...",len(args[5]))
             self._sendPackets(*args)