summaryrefslogtreecommitdiff
path: root/scripts/driver
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/driver')
-rw-r--r--scripts/driver35
1 files changed, 5 insertions, 30 deletions
diff --git a/scripts/driver b/scripts/driver
index c09f2f576..e5f849c71 100644
--- a/scripts/driver
+++ b/scripts/driver
@@ -1,6 +1,6 @@
#! /usr/bin/env python
#
-# Copyright (C) 1998 by the Free Software Foundation, Inc.
+# Copyright (C) 1998,1999,2000 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
@@ -24,28 +24,6 @@ import sys
-# This function is useful for debugging. When an error occurs, this attaches
-# the file name to the exception string and re-raises. This will be
-# unnecessary in Python 1.5.2, which also does sensible things to most os
-# module functions.
-
-##realopen = open
-##def open(filename, mode='r', bufsize=-1, realopen=realopen):
-## from Mailman.Utils import reraise
-## try:
-## return realopen(filename, mode, bufsize)
-## except IOError, e:
-## strerror = e.strerror + ': ' + filename
-## e.strerror = strerror
-## e.filename = filename
-## e.args = (e.args[0], strerror)
-## reraise(e)
-
-##import __builtin__
-##__builtin__.__dict__['open'] = open
-
-
-
# This standard driver script is used to run CGI programs, wrapped in code
# that catches errors, and displays them as HTML. This guarantees that
# (almost) any problems in the Mailman software doesn't result in a Web server
@@ -58,15 +36,12 @@ import sys
#
# - This file could contain a syntax error. In that case, you would indeed
# get a Web server error since this file wouldn't even compile, and there's
-# no way to catch that.
+# no way to catch that. Mailman's install procedure should make this highly
+# unlikely.
#
# - The sys module could be royally screwed, probably we couldn't import it.
-# Both those would indicate serious problems in the Python installation.
-# These won't generate Web server errors, but neither will they give
-# meaningful tracebacks.
-#
-# I consider these pretty unlikely.
-
+# This would indicate a serious problem with the Python installation, so
+# it's also highly unlikely to occur.
def run_main():