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

Method getlist

tools/python-3.11.9-amd64/Lib/cgi.py:564–573  ·  view source on GitHub ↗

Return list of received values.

(self, key)

Source from the content-addressed store, hash-verified

562 return default
563
564 def getlist(self, key):
565 """ Return list of received values."""
566 if key in self:
567 value = self[key]
568 if isinstance(value, list):
569 return [x.value for x in value]
570 else:
571 return [value.value]
572 else:
573 return []
574
575 def keys(self):
576 """Dictionary style keys() method."""

Callers 1

parse_multipartFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected