Fix header checker when copyright regex is None ()

Allow header_checker.py to work as it did before when no
copyright regex is defined.
pull/844/head
Paul Bartell committed by GitHub
parent 2808e48079
commit 3693b3e8c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,10 @@ class HeaderChecker:
self.padding = padding
self.header = header
self.copyright_regex = re.compile(copyright_regex)
if copyright_regex:
self.copyright_regex = re.compile(copyright_regex)
else:
self.copyright_regex = None
# Construct mutated header for assembly files
self.asm_header = [";" + line for line in header]

Loading…
Cancel
Save