Show More
@@ -971,6 +971,7 b' class atomictempfile:' | |||
|
971 | 971 | """ |
|
972 | 972 | def __init__(self, name, mode, createmode): |
|
973 | 973 | self.__name = name |
|
974 | self._fp = None | |
|
974 | 975 | self.temp = mktempcopy(name, emptyok=('w' in mode), |
|
975 | 976 | createmode=createmode) |
|
976 | 977 | self._fp = posixfile(self.temp, mode) |
@@ -988,6 +989,7 b' class atomictempfile:' | |||
|
988 | 989 | try: |
|
989 | 990 | os.unlink(self.temp) |
|
990 | 991 | except: pass |
|
992 | if self._fp: | |
|
991 | 993 | self._fp.close() |
|
992 | 994 | |
|
993 | 995 | def makedirs(name, mode=None): |
General Comments 0
You need to be logged in to leave comments.
Login now