aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/HFacer.py
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-09-21 02:15:16 +0000
committernyamatongwe <devnull@localhost>2003-09-21 02:15:16 +0000
commit7ebdcc32564192f34464c3b8040411897b58628b (patch)
tree7a7ad4f2aef8c17bbb40e44231d0b1661b55ccf6 /include/HFacer.py
parentbd7a52b9e473446a457737091f693ea389221b52 (diff)
downloadscintilla-mirror-7ebdcc32564192f34464c3b8040411897b58628b.tar.gz
Remove temporary file if no update.
Diffstat (limited to 'include/HFacer.py')
-rw-r--r--include/HFacer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/HFacer.py b/include/HFacer.py
index a26aab842..5f19ef948 100644
--- a/include/HFacer.py
+++ b/include/HFacer.py
@@ -60,7 +60,9 @@ def Regenerate(filename, genfn, definition):
out.close()
hfile.close()
outText = contents(tempname)
- if inText != outText:
+ if inText == outText:
+ os.unlink(tempname)
+ else:
os.unlink(filename)
os.rename(tempname, filename)