squash
This commit is contained in:
parent
23c1eaab29
commit
c695c5250a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user