From 54179117039c9e07e8c55c385b75f0e8a1f3e082 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 10:25:39 +0000 Subject: [PATCH] ref(tracing): Remove unused base64_stripped regex --- sentry_sdk/tracing_utils.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sentry_sdk/tracing_utils.py b/sentry_sdk/tracing_utils.py index 2ac3a67e4b..4d4c35ce39 100644 --- a/sentry_sdk/tracing_utils.py +++ b/sentry_sdk/tracing_utils.py @@ -67,18 +67,6 @@ ) -# This is a normal base64 regex, modified to reflect that fact that we strip the -# trailing = or == off -base64_stripped = ( - # any of the characters in the base64 "alphabet", in multiples of 4 - "([a-zA-Z0-9+/]{4})*" - # either nothing or 2 or 3 base64-alphabet characters (see - # https://en.wikipedia.org/wiki/Base64#Decoding_Base64_without_padding for - # why there's never only 1 extra character) - "([a-zA-Z0-9+/]{2,3})?" -) - - class EnvironHeaders(Mapping): # type: ignore def __init__( self,