MCPcopy
hub / github.com/pallets/werkzeug / _iter_encoded

Function _iter_encoded

src/werkzeug/wrappers/response.py:31–36  ·  view source on GitHub ↗
(iterable: t.Iterable[str | bytes])

Source from the content-addressed store, hash-verified

29
30
31def _iter_encoded(iterable: t.Iterable[str | bytes]) -> t.Iterator[bytes]:
32 for item in iterable:
33 if isinstance(item, str):
34 yield item.encode()
35 else:
36 yield item
37
38
39class Response(_SansIOResponse):

Callers 1

iter_encodedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected