MCPcopy Create free account
hub / github.com/celery/celery / __init__

Method __init__

celery/utils/text.py:202–204  ·  view source on GitHub ↗
(
            self, v: bytes | str | None = None, *a: Any, **kw: Any)

Source from the content-addressed store, hash-verified

200 """StringIO that takes bytes or str."""
201
202 def __init__(
203 self, v: bytes | str | None = None, *a: Any, **kw: Any) -> None:
204 _SIO_init(self, v.decode() if isinstance(v, bytes) else v, *a, **kw)
205
206 def write(self, data: bytes | str) -> int:
207 return _SIO_write(self, data.decode()

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected