Update of /cvsroot/mailman/mailman/bin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2992
Modified Files:
Tag: Release_2_1-maint
dumpdb
Log Message:
main(): Honor doprint even if we're not in filetype == 1.
Index: dumpdb
===================================================================
RCS file: /cvsroot/mailman/mailman/bin/dumpdb,v
retrieving revision 2.12.2.2
retrieving revision 2.12.2.3
diff -u -d -r2.12.2.2 -r2.12.2.3
--- dumpdb 10 Feb 2004 22:56:33 -0000 2.12.2.2
+++ dumpdb 13 May 2005 02:57:19 -0000 2.12.2.3
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -132,18 +132,21 @@
m = []
try:
cnt = 1
- print _('[----- start pickle file -----]')
+ if doprint:
+ print _('[----- start pickle file -----]')
while True:
try:
obj = load(fp)
except EOFError:
- print _('[----- end pickle file -----]')
+ if doprint:
+ print _('[----- end pickle file -----]')
break
- print _('<----- start object %(cnt)s ----->')
- if isinstance(obj, StringType):
- print obj
- else:
- pp.pprint(obj)
+ if doprint:
+ print _('<----- start object %(cnt)s ----->')
+ if isinstance(obj, StringType):
+ print obj
+ else:
+ pp.pprint(obj)
cnt += 1
m.append(obj)
finally:
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org