MCPcopy
hub / github.com/django/django / _get_path

Method _get_path

django/test/client.py:460–465  ·  view source on GitHub ↗
(self, parsed)

Source from the content-addressed store, hash-verified

458 return json.dumps(data, cls=self.json_encoder) if should_encode else data
459
460 def _get_path(self, parsed):
461 path = unquote_to_bytes(parsed.path)
462 # Replace the behavior where non-ASCII values in the WSGI environ are
463 # arbitrarily decoded with ISO-8859-1.
464 # Refs comment in `get_bytes_from_wsgi()`.
465 return path.decode("iso-8859-1")
466
467 def get(
468 self, path, data=None, secure=False, *, headers=None, query_params=None, **extra

Callers 2

genericMethod · 0.95
genericMethod · 0.80

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected