Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/copyright_header.py
Show First 20 Lines • Show All 532 Lines • ▼ Show 20 Lines | |||||
################################################################################ | ################################################################################ | ||||
# check for existing core copyright | # check for existing core copyright | ||||
################################################################################ | ################################################################################ | ||||
def file_already_has_bitcoin_copyright(file_lines): | def file_already_has_bitcoin_copyright(file_lines): | ||||
index, _ = get_updatable_copyright_line(file_lines) | index, _ = get_updatable_copyright_line(file_lines) | ||||
return index != None | return index is not None | ||||
################################################################################ | ################################################################################ | ||||
# insert header execution | # insert header execution | ||||
################################################################################ | ################################################################################ | ||||
def file_has_hashbang(file_lines): | def file_has_hashbang(file_lines): | ||||
if len(file_lines) < 1: | if len(file_lines) < 1: | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |