Show More
@@ -911,7 +911,7 b' class opener(object):' | |||||
911 | return atomictempfile(f, mode, self.createmode) |
|
911 | return atomictempfile(f, mode, self.createmode) | |
912 | try: |
|
912 | try: | |
913 | if 'w' in mode: |
|
913 | if 'w' in mode: | |
914 |
|
|
914 | unlink(f) | |
915 | nlink = 0 |
|
915 | nlink = 0 | |
916 | else: |
|
916 | else: | |
917 | # nlinks() may behave differently for files on Windows |
|
917 | # nlinks() may behave differently for files on Windows |
General Comments 0
You need to be logged in to leave comments.
Login now