| commit | 31645cc0bb223b70cd96cbd82ae8534a03d04004 | [log] [tgz] |
|---|---|---|
| author | Hector Chu <hectorchu@gmail.com> | Sun Dec 13 12:21:44 2009 -0800 |
| committer | Russ Cox <rsc@golang.org> | Sun Dec 13 12:21:44 2009 -0800 |
| tree | 9f183b8b60c79c9a00f0d51c6505668b46d6c85a | |
| parent | 978c3e96d1e1b1e5d1cd93430bfff8855c3b2bf5 [diff] [blame] |
Ported godefs to Windows. R=rsc https://golang.org/cl/164049
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index fa535d6..f5bb8fc 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py
@@ -171,6 +171,8 @@ f = open(path+'!', "w") f.write(self.DiskText()) f.close() + if sys.platform == "win32" and os.path.isfile(path): + os.remove(path) os.rename(path+'!', path) if self.web and not self.original_author: EditDesc(self.name, desc=self.desc,