Namespaces | Functions | Variables
check_copyright.py File Reference

Go to the source code of this file.

Namespaces

 

Functions

def check_copyright.join_license_text (header, prefix, footer, notice)
 
def check_copyright.load (name)
 
def check_copyright.log (cond, why, filename)
 
def check_copyright.save (name, text)
 
def check_copyright.write_copyright (license_text, file_text, filename)
 

Variables

 check_copyright._EXEMPT
 
 check_copyright.action
 
 check_copyright.argp = argparse.ArgumentParser(description='copyright checker')
 
 check_copyright.args = argp.parse_args()
 
 check_copyright.base = os.path.basename(filename)
 
 check_copyright.choices
 
 check_copyright.const
 
 check_copyright.default
 
 check_copyright.ext = os.path.splitext(filename)[1]
 
string check_copyright.FILE_LIST_COMMAND = 'git status -z | grep -Poz \'(?<=^[MARC][MARCD ] )[^\s]+\''
 
list check_copyright.filename_list = []
 
 check_copyright.LICENSE_NOTICE = f.read().splitlines()
 
dictionary check_copyright.LICENSE_PREFIX_RE
 
dictionary check_copyright.LICENSE_PREFIX_TEXT
 
 check_copyright.LICENSE_TEXT
 
 check_copyright.license_text = LICENSE_TEXT[ext]
 
string check_copyright.LICENSE_YEAR = f'Copyright {YEAR} gRPC authors.'
 
 check_copyright.m = re.search(re_license, text)
 
bool check_copyright.ok = True
 
 check_copyright.RE_LICENSE
 
 check_copyright.re_license = RE_LICENSE[ext]
 
string check_copyright.RE_YEAR = r'Copyright (?P<first_year>[0-9]+\-)?(?P<last_year>[0-9]+) ([Tt]he )?gRPC [Aa]uthors(\.|)'
 
 check_copyright.ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..'))
 
def check_copyright.text = load(filename)
 
 check_copyright.YEAR = datetime.datetime.now().year
 


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:06