Fixed regular expression to only match the first license notice at the top of the file

This commit is contained in:
Guilhem Lavaux 2013-03-02 18:29:08 -05:00
parent 62dfc736d4
commit edd9c2a45d

View file

@ -42,7 +42,7 @@ def apply_python_license(filename):
"""
print("Shell/Python file: %s" % filename)
relimit = r'^(?s)#\+.*#\+'
relimit=r'^#\+\n(#.*\n)*#\+\n'
apply_license(license, relimit, filename)