Update check_copyright.py to follow python 3 rules

Found this issue during the import.
pull/22740/head
nanahpang 5 years ago committed by GitHub
parent 4e7f3376d8
commit 564b70a1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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

Loading…
Cancel
Save