in hack/boilerplate/verify_boilerplate.py [0:0]
def has_ignored_header(pathname):
# Pass the encoding parameter to avoid ascii decode error for some
# platform.
with open(pathname, 'r', encoding='utf-8') as myfile:
data = myfile.read()
for header in IGNORE_HEADERS:
if data.startswith(header):
return True
return False