From c695c5250a9f29dd3888224170cf57e30c01cbd5 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Thu, 9 Mar 2023 10:37:41 +0200 Subject: [PATCH] squash --- sanic/__version__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanic/__version__.py b/sanic/__version__.py index 1492d6c4..90a169a0 100644 --- a/sanic/__version__.py +++ b/sanic/__version__.py @@ -5,6 +5,6 @@ from inspect import currentframe, stack for frame_info in stack(): if frame_info.frame is not currentframe(): - for member, value in frame_info.frame.f_globals.items(): - if member.startswith("__") and member.isupper(): - __compatibility__ = value + value = frame_info.frame.f_globals.get("__SANIC_COMPATIBILITY__") + if value: + __compatibility__ = value