MCPcopy
hub / github.com/django/django / write

Method write

django/test/client.py:112–117  ·  view source on GitHub ↗
(self, b, /)

Source from the content-addressed store, hash-verified

110 return content
111
112 def write(self, b, /):
113 if self.read_started:
114 raise ValueError("Unable to write a payload after it's been read")
115 content = force_bytes(b)
116 self.__content.write(content)
117 self.__len += len(content)
118
119
120def closing_iterator_wrapper(iterable, close):

Calls 1

force_bytesFunction · 0.90