diff options
| author | bwarsaw | 2002-10-17 17:14:56 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-10-17 17:14:56 +0000 |
| commit | 67d54b204c9e57314e76e9338618b260dc5ff9e7 (patch) | |
| tree | a974f43859fecf3a574c9223a74ec74e12213fb7 | |
| parent | f45119ef33ba4fbbf7807008b0ecce389a8a38db (diff) | |
| download | mailman-67d54b204c9e57314e76e9338618b260dc5ff9e7.tar.gz mailman-67d54b204c9e57314e76e9338618b260dc5ff9e7.tar.zst mailman-67d54b204c9e57314e76e9338618b260dc5ff9e7.zip | |
FakeDoc.addError(): Make the API really equivalent to
Document.addError()
| -rw-r--r-- | bin/config_list | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/config_list b/bin/config_list index 5dfa0e6c3..711d7648a 100644 --- a/bin/config_list +++ b/bin/config_list @@ -219,9 +219,11 @@ def getPropertyMap(mlist): class FakeDoc: - # Supports the interface required by gui._setValue() - def addError(self, s): - print >> sys.stderr, s + # Fake the error reporting API for the htmlformat.Document class + def addError(self, s, tag=None, *args): + if tag: + print >> sys.stderr, tag + print >> sys.stderr, s % args def do_input(listname, infile, checkonly, verbose): |
