Skip to content

Commit a7fd6d8

Browse files
committed
ignored PLC0207 rule as it is defeating the purpose of the split function here.
1 parent 5b953e5 commit a7fd6d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • instrumentation/opentelemetry-instrumentation-boto3sqs/src/opentelemetry/instrumentation/boto3sqs

instrumentation/opentelemetry-instrumentation-boto3sqs/src/opentelemetry/instrumentation/boto3sqs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _safe_end_processing_span(receipt_handle: str) -> None:
188188
@staticmethod
189189
def _extract_queue_name_from_url(queue_url: str) -> str:
190190
# A Queue name cannot have the `/` char, therefore we can return the part after the last /
191-
return queue_url.rsplit("/", maxsplit=1)[-1]
191+
return queue_url.rsplit("/")[-1] # noqa: PLC0207
192192

193193
def _create_processing_span(
194194
self,

0 commit comments

Comments
 (0)