Blame SOURCES/mailman-2.1.9-ctypo-new.patch

49da8b
diff --git a/Mailman/MTA/Postfix.py b/Mailman/MTA/Postfix.py
49da8b
index c4f21e4..0a8395b 100644
49da8b
--- a/Mailman/MTA/Postfix.py
49da8b
+++ b/Mailman/MTA/Postfix.py
49da8b
@@ -362,9 +362,9 @@ def checkperms(state):
49da8b
         if stat and (stat[ST_MODE] & targetmode) <> targetmode:
49da8b
             state.ERRORS += 1
49da8b
             octmode = oct(stat[ST_MODE])
49da8b
-            print _('%(dbfile)s permissions must be 066x (got %(octmode)s)'),
49da8b
+            print C_('%(dbfile)s permissions must be 066x (got %(octmode)s)'),
49da8b
             if state.FIX:
49da8b
-                print _('(fixing)')
49da8b
+                print C_('(fixing)')
49da8b
                 os.chmod(dbfile, stat[ST_MODE] | targetmode)
49da8b
             else:
49da8b
                 print
49da8b
diff --git a/bin/change_pw b/bin/change_pw
49da8b
index 35be13d..b9a36de 100644
49da8b
--- a/bin/change_pw
49da8b
+++ b/bin/change_pw
49da8b
@@ -187,8 +187,8 @@ def main():
49da8b
                 adminurl = mlist.GetScriptURL('admin', absolute=1)
49da8b
                 msg = Message.UserNotification(
49da8b
                     mlist.owner[:], Utils.get_site_email(),
49da8b
-                    _('Your new %(listname)s list password'),
49da8b
-                    _('''\
49da8b
+                    C_('Your new %(listname)s list password'),
49da8b
+                    C_('''\
49da8b
 The site administrator at %(hostname)s has changed the password for your
49da8b
 mailing list %(listname)s.  It is now
49da8b
 
49da8b
diff --git a/bin/check_perms b/bin/check_perms
49da8b
index f0c6795..5ef3306 100755
49da8b
--- a/bin/check_perms
49da8b
+++ b/bin/check_perms
49da8b
@@ -221,7 +221,7 @@ def checkarchives():
49da8b
     # In addition, on a multiuser system you may want to hide the private
49da8b
     # archives so other users can't read them.
49da8b
     if mode & S_IXOTH:
49da8b
-        print _("""\
49da8b
+        print C_("""\
49da8b
 Warning: Private archive directory is other-executable (o+x).
49da8b
          This could allow other users on your system to read private archives.
49da8b
          If you're on a shared multiuser system, you should consult the
49da8b
diff --git a/bin/clone_member b/bin/clone_member
49da8b
index d9ff224..b262aab 100755
49da8b
--- a/bin/clone_member
49da8b
+++ b/bin/clone_member
49da8b
@@ -133,7 +133,7 @@ def dolist(mlist, options):
49da8b
     pattern = mlist.GetBannedPattern(options.toaddr)
49da8b
     if pattern:
49da8b
         if not options.quiet:
49da8b
-            print '   ', _('Banned address (matched %(pattern)s)')
49da8b
+            print '   ', C_('Banned address (matched %(pattern)s)')
49da8b
         return
49da8b
 
49da8b
     # Now change the membership address
49da8b
diff --git a/bin/fix_url.py b/bin/fix_url.py
49da8b
index 6523ce2..d4840be 100644
49da8b
--- a/bin/fix_url.py
49da8b
+++ b/bin/fix_url.py
49da8b
@@ -72,7 +72,7 @@ def fix_url(mlist, *args):
49da8b
     # Make sure list is locked.
49da8b
     if not mlist.Locked():
49da8b
         if verbose:
49da8b
-            print _('Locking list')
49da8b
+            print C_('Locking list')
49da8b
         mlist.Lock()
49da8b
     if urlhost:
49da8b
         web_page_url = mm_cfg.DEFAULT_URL_PATTERN % urlhost
49da8b
diff --git a/bin/genaliases b/bin/genaliases
49da8b
index 29e5b5a..d6b9f07 100644
49da8b
--- a/bin/genaliases
49da8b
+++ b/bin/genaliases
49da8b
@@ -81,7 +81,7 @@ def main():
49da8b
 
49da8b
     if not mm_cfg.MTA:
49da8b
         mta = repr(mm_cfg.MTA)
49da8b
-        usage(2, _(
49da8b
+        usage(2, C_(
49da8b
             "genaliases can't do anything useful with mm_cfg.MTA = %(mta)s."
49da8b
              ))
49da8b
 
49da8b
diff --git a/bin/newlist b/bin/newlist
49da8b
index 7000396..e52f340 100755
49da8b
--- a/bin/newlist
49da8b
+++ b/bin/newlist
49da8b
@@ -248,7 +248,7 @@ def main():
49da8b
         try:
49da8b
             msg = Message.UserNotification(
49da8b
                 owner_mail, siteowner,
49da8b
-                _('Your new mailing list: %(listname)s'),
49da8b
+                C_('Your new mailing list: %(listname)s'),
49da8b
                 text, mlist.preferred_language)
49da8b
             msg.send(mlist)
49da8b
         finally:
49da8b
diff --git a/bin/reset_pw.py b/bin/reset_pw.py
49da8b
index e829aef..b71d532 100644
49da8b
--- a/bin/reset_pw.py
49da8b
+++ b/bin/reset_pw.py
49da8b
@@ -38,7 +38,7 @@ import getopt
49da8b
 
49da8b
 import paths
49da8b
 from Mailman import Utils
49da8b
-from Mailman.i18n import _
49da8b
+from Mailman.i18n import C_
49da8b
 
49da8b
 
49da8b
 try:
49da8b
@@ -54,7 +54,7 @@ def usage(code, msg=''):
49da8b
         fd = sys.stderr
49da8b
     else:
49da8b
         fd = sys.stdout
49da8b
-    print >> fd, _(__doc__.replace('%', '%%'))
49da8b
+    print >> fd, C_(__doc__.replace('%', '%%'))
49da8b
     if msg:
49da8b
         print >> fd, msg
49da8b
     sys.exit(code)
49da8b
@@ -74,13 +74,13 @@ def reset_pw(mlist, *args):
49da8b
 
49da8b
     listname = mlist.internal_name()
49da8b
     if verbose:
49da8b
-        print _('Changing passwords for list: %(listname)s')
49da8b
+        print C_('Changing passwords for list: %(listname)s')
49da8b
 
49da8b
     for member in mlist.getMembers():
49da8b
         randompw = Utils.MakeRandomPassword()
49da8b
         mlist.setMemberPassword(member, randompw)
49da8b
         if verbose:
49da8b
-            print _('New password for member %(member)40s: %(randompw)s')
49da8b
+            print C_('New password for member %(member)40s: %(randompw)s')
49da8b
 
49da8b
     mlist.Save()
49da8b
 
49da8b
diff --git a/bin/sync_members b/bin/sync_members
49da8b
index d302243..26a5e58 100755
49da8b
--- a/bin/sync_members
49da8b
+++ b/bin/sync_members
49da8b
@@ -261,7 +261,7 @@ def main():
49da8b
             except Errors.MMAlreadyAMember:
49da8b
                 pass
49da8b
             except Errors.MembershipIsBanned, pattern:
49da8b
-                print ('%s:' % addr), _('Banned address (matched %(pattern)s)')
49da8b
+                print ('%s:' % addr), C_('Banned address (matched %(pattern)s)')
49da8b
 
49da8b
         for laddr, addr in addrs.items():
49da8b
             # Should be a member, otherwise our test above is broken
49da8b
diff --git a/bin/update b/bin/update
49da8b
index 0ac5ffe..b584342 100755
49da8b
--- a/bin/update
49da8b
+++ b/bin/update
49da8b
@@ -452,7 +452,7 @@ def update_qfiles():
49da8b
         except EnvironmentError, e:
49da8b
             if e.errno <> errno.ENOTDIR:
49da8b
                 raise
49da8b
-            print _('Warning!  Not a directory: %(dirpath)s')
49da8b
+            print C_('Warning!  Not a directory: %(dirpath)s')
49da8b
 
49da8b
 
49da8b
 
49da8b
@@ -541,7 +541,7 @@ def dequeue(filebase):
49da8b
                 msg = data = None
49da8b
         except EOFError:
49da8b
             # For some reason the pckfile was empty.  Just delete it.
49da8b
-            print _('Warning!  Deleting empty .pck file: %(pckfile)s')
49da8b
+            print C_('Warning!  Deleting empty .pck file: %(pckfile)s')
49da8b
             os.unlink(pckfile)
49da8b
     finally:
49da8b
         if msgfp: