mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Elucidating XXX.
This commit is contained in:
parent
4ab161ff60
commit
592bbc0248
@ -782,6 +782,11 @@ class AtomicFile(file):
|
||||
# the latter doesn't work on Windows when self.filename
|
||||
# (the target) already exists. shutil.move handles those
|
||||
# intricacies for us.
|
||||
|
||||
# XXX There's a bug in Python <= 2.4 that allows this to
|
||||
# clobber read-only files. We should workaround this at
|
||||
# some point (probably by including a fixed shutil.py in
|
||||
# others/.
|
||||
shutil.move(self.tempFilename, self.filename)
|
||||
else:
|
||||
raise ValueError, 'AtomicFile.close called after rollback.'
|
||||
|
Loading…
Reference in New Issue
Block a user