Revision: 8218
          http://svn.sourceforge.net/mailman/?rev=8218&view=rev
Author:   msapiro
Date:     2007-05-11 18:38:52 -0700 (Fri, 11 May 2007)

Log Message:
-----------
Changed to use the new Utils.makedirs function instead of inline code to create
the shunt queue directory if it doesn't exist.

Modified Paths:
--------------
    branches/exp-elixir-branch/Mailman/Queue/Switchboard.py

Modified: branches/exp-elixir-branch/Mailman/Queue/Switchboard.py
===================================================================
--- branches/exp-elixir-branch/Mailman/Queue/Switchboard.py     2007-05-10 
17:26:48 UTC (rev 8217)
+++ branches/exp-elixir-branch/Mailman/Queue/Switchboard.py     2007-05-12 
01:38:52 UTC (rev 8218)
@@ -156,15 +156,7 @@
                 psvfile = os.path.join(config.SHUNTQUEUE_DIR,
                                        filebase + '.psv')
                 # Create the directory if it doesn't yet exist.
-                # Copied from __init__.
-                omask = os.umask(0)                       # rwxrws---
-                try:
-                    try:
-                        os.mkdir(config.SHUNTQUEUE_DIR, 0770)
-                    except OSError, e:
-                        if e.errno <> errno.EEXIST: raise
-                finally:
-                    os.umask(omask)
+                Utils.makedirs(config.SHUNTQUEUE_DIR, 0770)
                 os.rename(bakfile, psvfile)
             else:
                 os.unlink(bakfile)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to