bug 522804 - ZipFile exception.WindowsError build problem. r=pike

--HG--
extra : rebase_source : 9a940d5e8aed187f91584a86c7bd456bd249622c
This commit is contained in:
Ted Mielczarek 2009-11-23 10:20:21 -05:00
Родитель fdc5ea52b6
Коммит c6514e06d1
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -67,7 +67,10 @@ def lockFile(lockfile, max_wait = 600):
# we created the lockfile, so we're the owner
break
except OSError, e:
if e.errno != errno.EEXIST:
if e.errno == errno.EEXIST or \
(sys.platform == "win32" and e.errno == errno.EACCES):
pass
else:
# should not occur
raise