From 052e67ed12def80a1bba82dd473b9cff2d1625dd Mon Sep 17 00:00:00 2001 From: Neema Date: Wed, 23 Oct 2024 11:47:33 +0530 Subject: [PATCH] Running ruff rule A to change variable name --- opentelemetry-api/src/opentelemetry/baggage/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentelemetry-api/src/opentelemetry/baggage/__init__.py b/opentelemetry-api/src/opentelemetry/baggage/__init__.py index 9a740200a6f..b59ac0dd495 100644 --- a/opentelemetry-api/src/opentelemetry/baggage/__init__.py +++ b/opentelemetry-api/src/opentelemetry/baggage/__init__.py @@ -121,8 +121,8 @@ def _is_valid_value(value: object) -> bool: parts = str(value).split(";") is_valid_value = _VALUE_PATTERN.fullmatch(parts[0]) is not None if len(parts) > 1: # one or more properties metadata - for property in parts[1:]: - if _PROPERT_PATTERN.fullmatch(property) is None: + for prop in parts[1:]: + if _PROPERT_PATTERN.fullmatch(prop) is None: is_valid_value = False break return is_valid_value