diff --git a/hacking/core.py b/hacking/core.py index bf182e2..d1cd1df 100755 --- a/hacking/core.py +++ b/hacking/core.py @@ -138,13 +138,13 @@ under the License.""" content = ''.join(lines[start:(start + 12)]) content = re.sub('\#', '', content) content = re.sub('\s+', ' ', content) - stripped_apache2 = re.sub('\s+', ' ', APACHE2) + stripped_apache2 = re.sub('\s+', ' ', APACHE2).strip() if stripped_apache2 in content: return True else: print ("!=:\n'%s' !=\n'%s'" % - (stripped_apache2, content)) + (content, stripped_apache2)) return False