------------------------------------------------------------
revno: 1780
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Mon 2018-06-18 04:35:51 -0700
message:
  Added global _ where needed.
modified:
  Mailman/Cgi/admin.py
  Mailman/Cgi/options.py
  Mailman/ListAdmin.py
  Mailman/MailList.py


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Cgi/admin.py'
--- Mailman/Cgi/admin.py	2018-06-17 23:47:34 +0000
+++ Mailman/Cgi/admin.py	2018-06-18 11:35:51 +0000
@@ -1401,6 +1401,7 @@
 
 
 def change_options(mlist, category, subcat, cgidata, doc):
+    global _
     def safeint(formvar, defaultval=None):
         try:
             return int(cgidata.getfirst(formvar))

=== modified file 'Mailman/Cgi/options.py'
--- Mailman/Cgi/options.py	2018-06-17 21:44:53 +0000
+++ Mailman/Cgi/options.py	2018-06-18 11:35:51 +0000
@@ -59,6 +59,7 @@
 
 
 def main():
+    global _
     doc = Document()
     doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE)
 

=== modified file 'Mailman/ListAdmin.py'
--- Mailman/ListAdmin.py	2018-06-17 23:47:34 +0000
+++ Mailman/ListAdmin.py	2018-06-18 11:35:51 +0000
@@ -421,6 +421,7 @@
             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

=== modified file 'Mailman/MailList.py'
--- Mailman/MailList.py	2018-06-17 23:47:34 +0000
+++ Mailman/MailList.py	2018-06-18 11:35:51 +0000
@@ -1301,6 +1301,7 @@
     # 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

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to