diff options
author | Eric Engestrom <eric@engestrom.ch> | 2020-05-20 01:23:35 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-05-20 22:05:41 +0000 |
commit | ba44990726cf935f54aa414b8430452358da23dc (patch) | |
tree | 02fc1c396951c37809b23309786dffd6f5c754ae /bin | |
parent | c909370117d702d2d9e671ff9a611c85f30539c5 (diff) |
git_sha1_gen.py: fix whitespace
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5112>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/git_sha1_gen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py index 9d4369ebc06..a457b310d48 100644 --- a/bin/git_sha1_gen.py +++ b/bin/git_sha1_gen.py @@ -2,7 +2,6 @@ Generate the contents of the git_sha1.h file. """ - import argparse import os import os.path @@ -25,6 +24,7 @@ def get_git_sha1(): git_sha1 = '' return git_sha1 + def write_if_different(contents): """ Avoid touching the output file if it doesn't need modifications @@ -37,6 +37,7 @@ def write_if_different(contents): with open(args.output, 'w') as file: file.write(contents) + parser = argparse.ArgumentParser() parser.add_argument('--output', help='File to write the #define in', required=True) |