MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/test/client.py:76–81  ·  view source on GitHub ↗
(self, initial_bytes=None)

Source from the content-addressed store, hash-verified

74 """
75
76 def __init__(self, initial_bytes=None):
77 self.__content = BytesIO()
78 self.__len = 0
79 self.read_started = False
80 if initial_bytes is not None:
81 self.write(initial_bytes)
82
83 def __len__(self):
84 return self.__len

Callers

nothing calls this directly

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected