diff options
| author | bwarsaw | 2006-04-28 05:16:18 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-04-28 05:16:18 +0000 |
| commit | 3f5ae6b680e0125f5ae433aaa344fe530fada80b (patch) | |
| tree | e5367ac000a8981f1e518a99111b779e557b1532 /Mailman/bin/request.py | |
| parent | 85e02a8e0ac388dcec48481530c237cbe9b379f9 (diff) | |
| download | mailman-3f5ae6b680e0125f5ae433aaa344fe530fada80b.tar.gz mailman-3f5ae6b680e0125f5ae433aaa344fe530fada80b.tar.zst mailman-3f5ae6b680e0125f5ae433aaa344fe530fada80b.zip | |
Convert Mailman.bin.rmlist module to optparse, and do general cleanup.
Modify Mailman.i18n._() to understand string.Template style $-strings. The
function now looks in the frame's locals and globals for a variable
__i18n_templates__ which if True (defaults to False if missing) says that the
string being translated uses $-strings instead of %-strings.
newlist and rmlist both set __i18n_templates__ = True in their module
globals.
Rewrite ReopenableFileHandler to better ensure that nothing we log (even
random 8-bit garbage) can cause an error in the logging subsystem. First, we
open the underlying log file using a utf-8 codec, but if we get a UnicodeError
when writing a log message to the stream, we encode the string with the
'string-escape' codec, which should pretty much makes any string data
loggable.
Diffstat (limited to 'Mailman/bin/request.py')
0 files changed, 0 insertions, 0 deletions
