Show More
@@ -687,7 +687,13 b' def opener(base, audit=True):' | |||||
687 | os.close(fd) |
|
687 | os.close(fd) | |
688 | fp = posixfile(temp, "wb") |
|
688 | fp = posixfile(temp, "wb") | |
689 | try: |
|
689 | try: | |
690 | fp.write(posixfile(name, "rb").read()) |
|
690 | try: | |
|
691 | s = posixfile(name, "rb").read() | |||
|
692 | except IOError, inst: | |||
|
693 | if not getattr(inst, 'filename', None): | |||
|
694 | inst.filename = name | |||
|
695 | raise | |||
|
696 | fp.write(s) | |||
691 | except: |
|
697 | except: | |
692 | try: os.unlink(temp) |
|
698 | try: os.unlink(temp) | |
693 | except: pass |
|
699 | except: pass |
General Comments 0
You need to be logged in to leave comments.
Login now