MCPcopy Create free account
hub / github.com/EasyIME/PIME / _get_argument

Method _get_argument

python/python3/tornado/web.py:530–542  ·  view source on GitHub ↗
(
        self,
        name: str,
        default: Union[None, str, _ArgDefaultMarker],
        source: Dict[str, List[bytes]],
        strip: bool = True,
    )

Source from the content-addressed store, hash-verified

528 return self._get_arguments(name, self.request.query_arguments, strip)
529
530 def _get_argument(
531 self,
532 name: str,
533 default: Union[None, str, _ArgDefaultMarker],
534 source: Dict[str, List[bytes]],
535 strip: bool = True,
536 ) -> Optional[str]:
537 args = self._get_arguments(name, source, strip=strip)
538 if not args:
539 if isinstance(default, _ArgDefaultMarker):
540 raise MissingArgumentError(name)
541 return default
542 return args[-1]
543
544 def _get_arguments(
545 self, name: str, source: Dict[str, List[bytes]], strip: bool = True

Callers 3

get_argumentMethod · 0.95
get_body_argumentMethod · 0.95
get_query_argumentMethod · 0.95

Calls 2

_get_argumentsMethod · 0.95

Tested by

no test coverage detected