MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / write

Method write

pager_lib/tqdm/utils.py:173–177  ·  view source on GitHub ↗

Encode `s` and pass to the wrapped object's `.write()` method.

(self, s)

Source from the content-addressed store, hash-verified

171 self.wrapper_setattr('encoding', encoding)
172
173 def write(self, s):
174 """
175 Encode `s` and pass to the wrapped object's `.write()` method.
176 """
177 return self._wrapped.write(s.encode(self.wrapper_getattr('encoding')))
178
179 def __eq__(self, other):
180 return self._wrapped == getattr(other, '_wrapped', other)

Callers

nothing calls this directly

Calls 3

wrapper_getattrMethod · 0.80
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected