코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.
1def () -> t.Iterator[t.AnyStr]: 2 if (ctx := _cv_app.get(None)) is None: 3 raise RuntimeError( 4 "'stream_with_context' can only be used when a request" 5 " context is active, such as in a view function." 6 ) 7 8 with ctx: 9 yield None 10 11 try: 12 yield from gen 13 finally: 14 15 if hasattr(gen, "close"): 16 gen.close()