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

Function check_input

Lib/wsgiref/validate.py:360–364  ·  view source on GitHub ↗
(wsgi_input)

Source from the content-addressed store, hash-verified

358 "PATH_INFO should be '/'")
359
360def check_input(wsgi_input):
361 for attr in ['read', 'readline', 'readlines', '__iter__']:
362 assert_(hasattr(wsgi_input, attr),
363 "wsgi.input (%r) doesn't have the attribute %s"
364 % (wsgi_input, attr))
365
366def check_errors(wsgi_errors):
367 for attr in ['flush', 'write', 'writelines']:

Callers 1

check_environFunction · 0.85

Calls 1

assert_Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…