From 86b679a908d2f5c0a5f6bfecbcfabcffce5b22b4 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 21 Mar 2000 06:21:42 +0000 Subject: Remove the commented out extended open() function, since Python 1.5.2 is going to be required now. --- scripts/driver | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) (limited to 'scripts/driver') 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 @@ -23,28 +23,6 @@ import sys # From here on we are as bulletproof as possible! - -# 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 @@ -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(): -- cgit v1.2.3-70-g09d2