Skip to content

Commit

Permalink
Fix runtime error in generate-keyword-tests
Browse files Browse the repository at this point in the history
The script was made unusable after removing license headers.
  • Loading branch information
KamilaBorowska committed Feb 15, 2019
1 parent f47ec2a commit 14001e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etc/generate-keyword-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import stat


template = """
template = """\
// This file was auto-generated using 'src/etc/generate-keyword-tests.py %s'
fn main() {
Expand All @@ -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)

0 comments on commit 14001e8

Please sign in to comment.