MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / strip_quotes

Function strip_quotes

tools/python-3.11.9-amd64/Lib/http/cookiejar.py:459–464  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

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

Callers 1

parse_ns_headersFunction · 0.85

Calls 2

startswithMethod · 0.80
endswithMethod · 0.80

Tested by

no test coverage detected