From 14001e8a7b3e7772ac589d69d8badeb4330226f6 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Fri, 15 Feb 2019 14:48:21 +0100 Subject: [PATCH] Fix runtime error in generate-keyword-tests The script was made unusable after removing license headers. --- src/etc/generate-keyword-tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/generate-keyword-tests.py b/src/etc/generate-keyword-tests.py index 9936ce71b76bc..bc046a8f42d0b 100755 --- a/src/etc/generate-keyword-tests.py +++ b/src/etc/generate-keyword-tests.py @@ -15,7 +15,7 @@ import stat -template = """ +template = """\ // This file was auto-generated using 'src/etc/generate-keyword-tests.py %s' fn main() { @@ -35,7 +35,7 @@ os.chmod(test_file, stat.S_IWUSR) with open(test_file, 'wt') as f: - f.write(template % (datetime.datetime.now().year, kw, kw, kw)) + f.write(template % (kw, kw, kw)) # mark file read-only os.chmod(test_file, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)