This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 57266c56d52 Fix dev-tools/scripts/parseContributorsFromChanges.py
57266c56d52 is described below

commit 57266c56d52597bf085ec433f322947bf86eb3f6
Author: David Smiley <[email protected]>
AuthorDate: Wed Jan 22 01:34:15 2025 -0500

    Fix dev-tools/scripts/parseContributorsFromChanges.py
    
    Python regexp syntax issue
---
 dev-tools/scripts/parseContributorsFromChanges.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tools/scripts/parseContributorsFromChanges.py 
b/dev-tools/scripts/parseContributorsFromChanges.py
index 9ce1a5e19ae..70617df1957 100644
--- a/dev-tools/scripts/parseContributorsFromChanges.py
+++ b/dev-tools/scripts/parseContributorsFromChanges.py
@@ -37,7 +37,7 @@ pattern = re.compile(r"\(([^()]*)\)$")
 
 for para in paras:
   # Normalize whitespace (replace all whitespace with a single space)
-  para = re.sub('\s+', ' ', para).strip()
+  para = re.sub(r"\s+", ' ', para).strip()
   #print(f'> {para}')
 
   # Find all contributors in the line

Reply via email to