[Python-checkins] r68161 - in python/trunk: Lib/plat-mac/macostools.py Misc/NEWS
ronald.oussoren
python-checkins at python.org
Fri Jan 2 16:00:06 CET 2009
Author: ronald.oussoren
Date: Fri Jan 2 16:00:05 2009
New Revision: 68161
Log:
Fix for issue 1149804
Modified:
python/trunk/Lib/plat-mac/macostools.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/plat-mac/macostools.py
==============================================================================
--- python/trunk/Lib/plat-mac/macostools.py (original)
+++ python/trunk/Lib/plat-mac/macostools.py Fri Jan 2 16:00:05 2009
@@ -62,7 +62,14 @@
if os.sep == ':' and not ':' in head:
head = head + ':'
mkdirs(head)
- os.mkdir(dst, 0777)
+
+ try:
+ os.mkdir(dst, 0777)
+ except OSError, e:
+ # be happy if someone already created the path
+ if e.errno != errno.EEXIST:
+ raise
+
def touched(dst):
"""Tell the finder a file has changed. No-op on MacOSX."""
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri Jan 2 16:00:05 2009
@@ -235,6 +235,9 @@
- Issue #1737832 : plat-mac/EasyDialog.py no longer uses the broken aepack
module.
+- Issue #1149804: macostools.mkdirs now even works when another process
+ creates one of the needed subdirectories.
+
Tools/Demos
-----------
More information about the Python-checkins
mailing list