MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / __exit__

Method __exit__

pywebio/output.py:2152–2159  ·  view source on GitHub ↗

If this method returns True, it means that the context manager can handle the exception, so that the with statement terminates the propagation of the exception

(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

2150 return self.name
2151
2152 def __exit__(self, exc_type, exc_val, exc_tb):
2153 """
2154 If this method returns True, it means that the context manager can handle the exception,
2155 so that the with statement terminates the propagation of the exception
2156 """
2157 scope = get_current_session().pop_scope()
2158 send_msg('output_ctl', dict(loose=scope2dom(scope))) # revoke lock the height of the scope
2159 return False # Propagate Exception
2160
2161 def __call__(self, func):
2162 """decorator implement"""

Callers 2

wrapperMethod · 0.95
coro_wrapperMethod · 0.95

Calls 4

get_current_sessionFunction · 0.85
send_msgFunction · 0.85
scope2domFunction · 0.85
pop_scopeMethod · 0.80

Tested by

no test coverage detected