This commit is contained in:
Adam Hopkins 2023-03-09 10:37:41 +02:00
parent 23c1eaab29
commit c695c5250a
No known key found for this signature in database
GPG Key ID: 9F85EE6C807303FB

View File

@ -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():
value = frame_info.frame.f_globals.get("__SANIC_COMPATIBILITY__")
if value:
__compatibility__ = value