From edd9c2a45d2d9977761dcc0ebf63a6876e947dde Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sat, 2 Mar 2013 18:29:08 -0500 Subject: [PATCH] Fixed regular expression to only match the first license notice at the top of the file --- build_tools/gather_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/gather_sources.py b/build_tools/gather_sources.py index 187bf1e..44c18be 100644 --- a/build_tools/gather_sources.py +++ b/build_tools/gather_sources.py @@ -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)