squash
This commit is contained in:
parent
23c1eaab29
commit
c695c5250a
|
@ -5,6 +5,6 @@ from inspect import currentframe, stack
|
||||||
|
|
||||||
for frame_info in stack():
|
for frame_info in stack():
|
||||||
if frame_info.frame is not currentframe():
|
if frame_info.frame is not currentframe():
|
||||||
for member, value in frame_info.frame.f_globals.items():
|
value = frame_info.frame.f_globals.get("__SANIC_COMPATIBILITY__")
|
||||||
if member.startswith("__") and member.isupper():
|
if value:
|
||||||
__compatibility__ = value
|
__compatibility__ = value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user