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

Function strip_quotes

Lib/http/cookiejar.py:460–465  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

458 return ", ".join(headers)
459
460def strip_quotes(text):
461 if text.startswith('"'):
462 text = text[1:]
463 if text.endswith('"'):
464 text = text[:-1]
465 return text
466
467def parse_ns_headers(ns_headers):
468 """Ad-hoc parser for Netscape protocol cookie-attributes.

Callers 1

parse_ns_headersFunction · 0.85

Calls 2

startswithMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…