diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/contrib/convert-spdx-licenses.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/contrib/convert-spdx-licenses.py b/scripts/contrib/convert-spdx-licenses.py index 68b9e2f18e..4e194dee3f 100755 --- a/scripts/contrib/convert-spdx-licenses.py +++ b/scripts/contrib/convert-spdx-licenses.py | |||
@@ -114,6 +114,7 @@ def processfile(fn): | |||
114 | if orig != line: | 114 | if orig != line: |
115 | modified = True | 115 | modified = True |
116 | new_file.write(line) | 116 | new_file.write(line) |
117 | new_file.close() | ||
117 | if modified: | 118 | if modified: |
118 | shutil.copymode(fn, abs_path) | 119 | shutil.copymode(fn, abs_path) |
119 | os.remove(fn) | 120 | os.remove(fn) |