From cecee6f6238d162a161bc1f6da13783fde2f0895 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 18 Jun 2018 04:35:51 -0700 Subject: Added global _ where needed. --- Mailman/Cgi/admin.py | 1 + Mailman/Cgi/options.py | 1 + Mailman/ListAdmin.py | 1 + Mailman/MailList.py | 1 + 4 files changed, 4 insertions(+) (limited to 'Mailman') diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 53975964..f77b358e 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -1401,6 +1401,7 @@ def submit_button(name='submit'): def change_options(mlist, category, subcat, cgidata, doc): + global _ def safeint(formvar, defaultval=None): try: return int(cgidata.getfirst(formvar)) diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index c2a84ecb..34a7718e 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -59,6 +59,7 @@ AUTH_CONTEXTS = (mm_cfg.AuthListAdmin, mm_cfg.AuthSiteAdmin, def main(): + global _ doc = Document() doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index cf418d05..fe58109c 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -421,6 +421,7 @@ class ListAdmin: i18n.set_language(lang) def __handlesubscription(self, record, value, comment): + global _ stime, addr, fullname, password, digest, lang = record if value == mm_cfg.DEFER: return DEFER diff --git a/Mailman/MailList.py b/Mailman/MailList.py index d2a15e29..83717f40 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1301,6 +1301,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, # Confirmation processing # def ProcessConfirmation(self, cookie, context=None): + global _ rec = self.pend_confirm(cookie) if rec is None: raise Errors.MMBadConfirmation, 'No cookie record for %s' % cookie -- cgit v1.2.3