MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / getargs

Method getargs

21-async/mojifinder/bottle.py:366–373  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

364
365 if filters:
366 def getargs(path):
367 url_args = re_match(path).groupdict()
368 for name, wildcard_filter in filters:
369 try:
370 url_args[name] = wildcard_filter(url_args[name])
371 except ValueError:
372 raise HTTPError(400, 'Path has wrong format.')
373 return url_args
374 elif re_pattern.groupindex:
375 def getargs(path):
376 return re_match(path).groupdict()

Callers

nothing calls this directly

Calls 1

HTTPErrorClass · 0.85

Tested by

no test coverage detected