From 564b70a1d772a425d0ff7a25544d8e6ac18bb10a Mon Sep 17 00:00:00 2001 From: nanahpang <31627465+nanahpang@users.noreply.github.com> Date: Wed, 22 Apr 2020 13:58:40 -0700 Subject: [PATCH] Update check_copyright.py to follow python 3 rules Found this issue during the import. --- tools/distrib/check_copyright.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py index 831d62ef52e..c264bf8a454 100755 --- a/tools/distrib/check_copyright.py +++ b/tools/distrib/check_copyright.py @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import print_function import argparse import datetime import os @@ -129,9 +130,9 @@ assert (re.search(RE_LICENSE['Makefile'], load('Makefile'))) def log(cond, why, filename): if not cond: return if args.output == 'details': - print '%s: %s' % (why, filename) + print('%s: %s' % (why, filename)) else: - print filename + print(filename) # scan files, validate the text