diff options
| author | nyamatongwe <devnull@localhost> | 2003-09-21 02:15:16 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2003-09-21 02:15:16 +0000 |
| commit | 7ebdcc32564192f34464c3b8040411897b58628b (patch) | |
| tree | 7a7ad4f2aef8c17bbb40e44231d0b1661b55ccf6 /include/HFacer.py | |
| parent | bd7a52b9e473446a457737091f693ea389221b52 (diff) | |
| download | scintilla-mirror-7ebdcc32564192f34464c3b8040411897b58628b.tar.gz | |
Remove temporary file if no update.
Diffstat (limited to 'include/HFacer.py')
| -rw-r--r-- | include/HFacer.py | 4 |
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) |
