From 7ea37920f0de7c4a48a8a71a12e9b268370f6fcc Mon Sep 17 00:00:00 2001 From: Pradeepbeleri Date: Mon, 14 Sep 2026 19:12:31 +0530 Subject: [PATCH] Remove duplicate COPYLEFT entries in legal file classification lists (##5319) Signed-off-by: Pradeepbeleri --- CHANGELOG.rst | 1 + src/licensedcode/legal.py | 2 +- src/summarycode/classify.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index cf4db410925..e27f571bc5c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,7 @@ Changelog Next release -------------- +- Remove duplicate 'COPYLEFT' entries in legal file classification lists.(#5319) - Fix the optional ``licenses`` extra dependency typo to install ``licensedcode-data``. diff --git a/src/licensedcode/legal.py b/src/licensedcode/legal.py index 08c450157a2..3f82fcedb64 100644 --- a/src/licensedcode/legal.py +++ b/src/licensedcode/legal.py @@ -35,7 +35,7 @@ 'COMMITMENT', 'COMMITMENTS', 'WARRANTY', - 'COPYLEFT', + ) special_names_lower = tuple(x.lower() for x in special_names) diff --git a/src/summarycode/classify.py b/src/summarycode/classify.py index 03eb8d63dd3..2989cdc139c 100644 --- a/src/summarycode/classify.py +++ b/src/summarycode/classify.py @@ -37,7 +37,7 @@ def get_relative_path(root_path, path): 'legal', 'eula', 'agreement', - 'copyleft', + 'patent', 'patents', )