[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Fix a bug in handling DROP packets, and send all usage ...
Update of /home/minion/cvsroot/src/minion/lib/mixminion/directory
In directory moria.mit.edu:/tmp/cvs-serv22028/lib/mixminion/directory
Modified Files:
DirMain.py
Log Message:
Fix a bug in handling DROP packets, and send all usage to stdout
Index: DirMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/directory/DirMain.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- DirMain.py 6 Jan 2003 03:29:46 -0000 1.7
+++ DirMain.py 7 Jan 2003 04:49:11 -0000 1.8
@@ -45,20 +45,20 @@
def usageAndExit(cmd):
"""Print a usage message and exit"""
- print >>sys.stderr, USAGE%cmd
+ print USAGE%cmd
sys.exit(1)
def cmd_import(cmd, base, rest):
if len(rest) != 1: usageAndExit(cmd)
lst = ServerList(base)
lst.importServerInfo(rest[0], knownOnly=1)
- print >>sys.stderr, "Imported."
+ print "Imported."
def cmd_import_new(cmd, base, rest):
if len(rest) != 1: usageAndExit(cmd)
lst = ServerList(base)
lst.importServerInfo(rest[0], knownOnly=0)
- print >>sys.stderr, "Imported."
+ print "Imported."
def cmd_generate(cmd, base, rest):
if len(rest) != 0: usageAndExit(cmd)