MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / check_iterator

Function check_iterator

tools/python-3.11.9-amd64/Lib/wsgiref/validate.py:435–441  ·  view source on GitHub ↗
(iterator)

Source from the content-addressed store, hash-verified

433 # More exc_info checks?
434
435def check_iterator(iterator):
436 # Technically a bytestring is legal, which is why it's a really bad
437 # idea, because it may cause the response to be returned
438 # character-by-character
439 assert_(not isinstance(iterator, (str, bytes)),
440 "You should not return a string as your application iterator, "
441 "instead return a single-item list containing a bytestring.")

Callers 1

lint_appFunction · 0.85

Calls 1

assert_Function · 0.85

Tested by

no test coverage detected