Merge tag 'u-boot-rockchip-20190729' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / scripts / mailmapper
index dd1ddf6..2e2d7fa 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()