MCPcopy Index your code
hub / github.com/RustPython/RustPython / _validate_status

Method _validate_status

Lib/wsgiref/handlers.py:251–257  ·  view source on GitHub ↗
(self, status)

Source from the content-addressed store, hash-verified

249 return self.write
250
251 def _validate_status(self, status):
252 if len(status) < 4:
253 raise AssertionError("Status must be at least 4 characters")
254 if not status[:3].isdigit():
255 raise AssertionError("Status message must begin w/3-digit code")
256 if status[3] != " ":
257 raise AssertionError("Status message must have a space after code")
258
259 def _convert_string_type(self, value, title):
260 """Convert/check value type."""

Callers 1

start_responseMethod · 0.95

Calls 2

lenFunction · 0.85
isdigitMethod · 0.45

Tested by

no test coverage detected