[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Calm down pychecker; speed up startup



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

Modified Files:
	__init__.py 
Log Message:
Calm down pychecker; speed up startup

Index: __init__.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/__init__.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- __init__.py	12 Dec 2002 19:56:46 -0000	1.10
+++ __init__.py	15 Dec 2002 03:44:40 -0000	1.11
@@ -16,5 +16,12 @@
 ## import mixminion.MMTPClient
 ## import mixminion.Packet
 ## import mixminion.ServerInfo
-## import mixminion.ClientMain
-## import mixminion.server
+
+## This next segment keeps pychecker from making spurious complaints.
+import sys
+if sys.modules.has_key("pychecker"):
+    import mixminion.ClientMain
+    import mixminion.server
+    import mixminion.test
+    import mixminion.testSupport
+del sys