diff options
| author | bwarsaw | 2000-03-21 06:21:42 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-03-21 06:21:42 +0000 |
| commit | 86b679a908d2f5c0a5f6bfecbcfabcffce5b22b4 (patch) | |
| tree | ed530f5a5c34d7fae3abc9bf6c101f205ad5699c | |
| parent | fabd037aef8938986d156274eceea9e2f1f593b1 (diff) | |
| download | mailman-86b679a908d2f5c0a5f6bfecbcfabcffce5b22b4.tar.gz mailman-86b679a908d2f5c0a5f6bfecbcfabcffce5b22b4.tar.zst mailman-86b679a908d2f5c0a5f6bfecbcfabcffce5b22b4.zip | |
| -rw-r--r-- | scripts/driver | 35 |
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(): |
