acpi: Add an __ACPI__ preprocessor symbol
[oweals/u-boot.git] / scripts / mailmapper
index dd1ddf6a712fd424942bf7ffb56d17587bc12dfb..2e2d7faff573d215361b97e89588a4524f347cb1 100755 (executable)
@@ -1,9 +1,7 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
+# SPDX-License-Identifier: GPL-2.0+
 #
 # Copyright (C) 2014, Masahiro Yamada <yamada.m@jp.panasonic.com>
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
 
 '''
 A tool to create/update the mailmap file
@@ -59,8 +57,7 @@ MIN_COMMITS = 50
 try:
     toplevel = subprocess.check_output(['git', 'rev-parse', '--show-toplevel'])
 except subprocess.CalledProcessError:
-    print >> sys.stderr, 'Please run in a git repository.'
-    sys.exit(1)
+    sys.exit('Please run in a git repository.')
 
 # strip '\n'
 toplevel = toplevel.rstrip()