Merge pull request #22740 from grpc/nanahpang-patch-1

Update check_copyright.py to follow python 3 rules
pull/22808/head
nanahpang 5 years ago committed by GitHub
commit a82b17f69a
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