aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorbwarsaw <>2003-04-20 04:53:00 +0000
committerbwarsaw <>2003-04-20 04:53:00 +0000
commit4bf056812abff6a5a8c30fac697bbafdac64d6b4 (patch)
tree24b5e2f2f277af8611d2fe7303f47aa4badd7df8 /scripts
parent9db2537ef7aad632c7d09ecd60b72c8f9315f067 (diff)
downloadmailman2-4bf056812abff6a5a8c30fac697bbafdac64d6b4.tar.gz
mailman2-4bf056812abff6a5a8c30fac697bbafdac64d6b4.tar.xz
mailman2-4bf056812abff6a5a8c30fac697bbafdac64d6b4.zip
Backporting from the trunk
Diffstat (limited to 'scripts')
-rw-r--r--scripts/driver13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/driver b/scripts/driver
index 60c8c79e..99958314 100644
--- a/scripts/driver
+++ b/scripts/driver
@@ -1,19 +1,19 @@
# -*- python -*-
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2003 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
+# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# This better succeed. If this fails, Python is royally screwed so we might
@@ -90,8 +90,9 @@ def run_main():
sys.stderr = sys.__stderr__
sys.stdout = sys.__stdout__
except SystemExit:
- # This is a valid way for the function to exit.
- pass
+ # This is a valid way for the function to exit. Be sure any text
+ # produced is still written out to the browser.
+ sys.stdout.write(tempstdout.getvalue())
except:
print_traceback(logger)
print_environment(logger)