MCPcopy Index your code
hub / github.com/python/cpython / js_output

Method js_output

Lib/http/cookies.py:538–544  ·  view source on GitHub ↗

Return a string suitable for JavaScript.

(self, attrs=None)

Source from the content-addressed store, hash-verified

536 return '<%s: %s>' % (self.__class__.__name__, _spacejoin(l))
537
538 def js_output(self, attrs=None):
539 """Return a string suitable for JavaScript."""
540 result = []
541 items = sorted(self.items())
542 for key, value in items:
543 result.append(value.js_output(attrs))
544 return _nulljoin(result)
545
546 def load(self, rawdata):
547 """Load cookies from a string (presumably HTTP_COOKIE) or

Callers

nothing calls this directly

Calls 3

itemsMethod · 0.45
appendMethod · 0.45
js_outputMethod · 0.45

Tested by

no test coverage detected