aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2018-06-18 04:35:51 -0700
committerMark Sapiro <mark@msapiro.net>2018-06-18 04:35:51 -0700
commitcecee6f6238d162a161bc1f6da13783fde2f0895 (patch)
treeae790c11556b99dfaf27a07b27ab0b382020d016 /Mailman/Cgi
parentd3b8055fdda07338ac0b2de59613da2b34433412 (diff)
downloadmailman2-cecee6f6238d162a161bc1f6da13783fde2f0895.tar.gz
mailman2-cecee6f6238d162a161bc1f6da13783fde2f0895.tar.xz
mailman2-cecee6f6238d162a161bc1f6da13783fde2f0895.zip
Added global _ where needed.
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r--Mailman/Cgi/admin.py1
-rw-r--r--Mailman/Cgi/options.py1
2 files changed, 2 insertions, 0 deletions
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)