git_sha1_gen.py: fix whitespace
authorEric Engestrom <eric@engestrom.ch>
Tue, 19 May 2020 23:23:35 +0000 (01:23 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 22:05:41 +0000 (22:05 +0000)
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>

bin/git_sha1_gen.py

index 9d4369ebc06bffe3188608686f1275bc6ecc6f47..a457b310d48085dcb9367df54bacc1974a064248 100644 (file)
@@ -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)