MCPcopy Index your code
hub / github.com/python/cpython / _write

Method _write

Lib/wsgiref/handlers.py:474–482  ·  view source on GitHub ↗
(self,data)

Source from the content-addressed store, hash-verified

472 self.environ.update(self.base_env)
473
474 def _write(self,data):
475 result = self.stdout.write(data)
476 if result is None or result == len(data):
477 return
478 from warnings import warn
479 warn("SimpleHandler.stdout.write() should not do partial writes",
480 DeprecationWarning)
481 while data := data[result:]:
482 result = self.stdout.write(data)
483
484 def _flush(self):
485 self.stdout.flush()

Callers

nothing calls this directly

Calls 2

warnFunction · 0.90
writeMethod · 0.45

Tested by

no test coverage detected