diff --git a/poetry/spdx/__init__.py b/poetry/spdx/__init__.py index 3d6cc433f15..811210b0f3b 100644 --- a/poetry/spdx/__init__.py +++ b/poetry/spdx/__init__.py @@ -25,7 +25,7 @@ def license_by_id(identifier): # MIT/WTFPL/Unlicense are excluded as their ids are simply their name - if someone types "mit", they've already found the license they were looking for common_strings = ["agpl", "lgpl", "gpl", "bsd", "apache", "mpl", "cc0"] - for str in common_strings: + for string in common_strings: if str in id: err += "\n"