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

Method js_output

Lib/http/cookies.py:522–528  ·  view source on GitHub ↗

Return a string suitable for JavaScript.

(self, attrs=None)

Source from the content-addressed store, hash-verified

520 return '<%s: %s>' % (self.__class__.__name__, _spacejoin(l))
521
522 def js_output(self, attrs=None):
523 """Return a string suitable for JavaScript."""
524 result = []
525 items = sorted(self.items())
526 for key, value in items:
527 result.append(value.js_output(attrs))
528 return _nulljoin(result)
529
530 def load(self, rawdata):
531 """Load cookies from a string (presumably HTTP_COOKIE) or

Callers

nothing calls this directly

Calls 4

sortedFunction · 0.85
itemsMethod · 0.45
appendMethod · 0.45
js_outputMethod · 0.45

Tested by

no test coverage detected