Skip to content

Commit

Permalink
be even more lenient with windows' stupid EACCES errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Jun 26, 2011
1 parent 6c5cfa6 commit 6811903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esky/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def really_rename(source,target):
if sys.platform != "win32":
os.rename(source,target)
else:
for _ in xrange(3):
for _ in xrange(10):
try:
os.rename(source,target)
except WindowsError, e:
Expand Down Expand Up @@ -489,7 +489,7 @@ def really_rmtree(path):
if not os.path.exists(path):
shutil.rmtree(path)
# This is a little retry loop that catches troublesome errors.
for _ in xrange(3):
for _ in xrange(10):
try:
shutil.rmtree(path)
except WindowsError, e:
Expand Down

0 comments on commit 6811903

Please sign in to comment.