From 40b4a3500d71f8e93ed9823666fe56c77d4e06bb Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 31 Dec 2001 21:16:03 +0000 Subject: __convert(): Another bow to Python 2.1; move the import of add_error_message into the nested error() function so Python 2.1 won't complain about shadows. --- Mailman/Gui/Bounce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailman/Gui/Bounce.py b/Mailman/Gui/Bounce.py index 96741e900..c0c5420ed 100644 --- a/Mailman/Gui/Bounce.py +++ b/Mailman/Gui/Bounce.py @@ -102,8 +102,8 @@ class Bounce: def __convert(self, mlist, cgidata, varname, doc, func): # BAW: This should really be an attribute on the doc object - from Mailman.Cgi.admin import add_error_message def error(doc, varname, value): + from Mailman.Cgi.admin import add_error_message text = _("""Bad value for %(varname)s: %(value)s""") add_error_message(doc, text, _('Error: ')) -- cgit v1.3.1