Ported godefs to Windows.

R=rsc
https://golang.org/cl/164049
This commit is contained in:
Hector Chu 2009-12-13 12:21:44 -08:00 committed by Russ Cox
parent 978c3e96d1
commit 31645cc0bb
3 changed files with 82 additions and 67 deletions

View file

@ -171,6 +171,8 @@ class CL(object):
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,