Skip to content

Commit aaaafea

Browse files
committed
refactor!: rename spdx.is_compound_expression -> spdx.is_expression
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a6998f9 commit aaaafea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cyclonedx/factory/license.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from ..exception.factory import InvalidLicenseExpressionException, InvalidSpdxLicenseException
2121
from ..model.license import DisjunctiveLicense, LicenseExpression
22-
from ..spdx import fixup_id as spdx_fixup, is_compound_expression as is_spdx_compound_expression
22+
from ..spdx import fixup_id as spdx_fixup, is_expression as is_spdx_expression
2323

2424
if TYPE_CHECKING: # pragma: no cover
2525
from ..model import AttachedText, XsUri
@@ -57,11 +57,11 @@ def make_with_expression(self, expression: str, *,
5757
) -> LicenseExpression:
5858
"""Make a :class:`cyclonedx.model.license.LicenseExpression` with a compound expression.
5959
60-
Utilizes :func:`cyclonedx.spdx.is_compound_expression`.
60+
Utilizes :func:`cyclonedx.spdx.is_expression`.
6161
6262
:raises InvalidLicenseExpressionException: if param `value` is not known/supported license expression
6363
"""
64-
if is_spdx_compound_expression(expression):
64+
if is_spdx_expression(expression):
6565
return LicenseExpression(expression, acknowledgement=acknowledgement)
6666
raise InvalidLicenseExpressionException(expression)
6767

0 commit comments

Comments
 (0)