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

[minion-cvs] appease pychecker



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

Modified Files:
	DNSFarm.py PacketHandler.py ServerConfig.py ServerMain.py 
Log Message:
appease pychecker

Index: DNSFarm.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/DNSFarm.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- DNSFarm.py	2 Feb 2004 07:05:50 -0000	1.10
+++ DNSFarm.py	7 Mar 2004 06:31:46 -0000	1.11
@@ -5,7 +5,6 @@
    background threads and cachhe the results.
    """
 
-import socket
 import threading
 import time
 import sys

Index: PacketHandler.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/PacketHandler.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- PacketHandler.py	6 Mar 2004 00:04:38 -0000	1.37
+++ PacketHandler.py	7 Mar 2004 06:31:46 -0000	1.38
@@ -314,7 +314,7 @@
         x = self.tag+self.address
         if tagged:
             if len(x)<Packet.TAG_LEN:
-                raise ParseError("Missing decoding handle for exit type")
+                raise Packet.ParseError("Missing decoding handle for exit type")
             self.tag = x[:Packet.TAG_LEN]
             self.address = x[Packet.TAG_LEN:]
         else:

Index: ServerConfig.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerConfig.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- ServerConfig.py	6 Mar 2004 00:04:38 -0000	1.52
+++ ServerConfig.py	7 Mar 2004 06:31:46 -0000	1.53
@@ -9,7 +9,6 @@
 
 import operator
 import os
-import sys
 
 import mixminion.Config
 import mixminion.server.Modules

Index: ServerMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/ServerMain.py,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- ServerMain.py	6 Mar 2004 00:04:38 -0000	1.120
+++ ServerMain.py	7 Mar 2004 06:31:46 -0000	1.121
@@ -897,7 +897,7 @@
             now = time.time()
             timeLeft = nextEventTime - now
             tickInterval = self.mmtpServer.TICK_INTERVAL
-            nexttick = now+tickInterval
+            nextTick = now+tickInterval
             while timeLeft > 0:
                 # Handle pending network events
                 self.mmtpServer.process(tickInterval)
@@ -918,7 +918,7 @@
 
                 # Calculate remaining time until the next event.
                 now = time.time()
-                if now > nexttick:
+                if now > nextTick:
                     self.mmtpServer.tick()
                     nextTick = now+tickInterval
                 timeLeft = nextEventTime - now