diff options
| author | bwarsaw | 2001-06-27 18:05:24 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-06-27 18:05:24 +0000 |
| commit | d6dde4c9c444cf8f8893fb660a4aa40699c54e7d (patch) | |
| tree | ace08c1a386cdfcf104ea7d1c991721a3951e422 /scripts | |
| parent | 9a30d0a9fac532be49eaf3f4bb34006a5ec3468f (diff) | |
| download | mailman-d6dde4c9c444cf8f8893fb660a4aa40699c54e7d.tar.gz mailman-d6dde4c9c444cf8f8893fb660a4aa40699c54e7d.tar.zst mailman-d6dde4c9c444cf8f8893fb660a4aa40699c54e7d.zip | |
run_main(): Don't stick Mailman.i18n._ in the builtins.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/driver | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/scripts/driver b/scripts/driver index e7882c0e6..3cc4580cb 100644 --- a/scripts/driver +++ b/scripts/driver @@ -1,5 +1,6 @@ # -*- python -*- -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. + +# Copyright (C) 1998,1999,2000,2001 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 @@ -79,20 +80,10 @@ def run_main(): # special one. import Mailman.pythonlib.cgi sys.modules['cgi'] = Mailman.pythonlib.cgi - # - # TBD: Stick the i18n translation function into the builtins. This is - # bogus because it's too magical, but it's also quite convenient - # during the i18n integration phase. This will change before the - # release! - import __builtin__ - from Mailman.i18n import _ - __builtin__._ = _ - # # The name of the module to run is passed in argv[1]. What we # actually do is import the module named by argv[1] that lives in the # Mailman.Cgi package. That module must have a main() function, which # we dig out and call. - # scriptname = sys.argv[1] # See the reference manual for why we have to do things this way. # Note that importing should have no side-effects! |
