Kaydet (Commit) a19baf58 authored tarafından Georg Brandl's avatar Georg Brandl

Underscore the name of an internal utility function.

üst 5d0ca2c8
...@@ -434,7 +434,7 @@ def join_header_words(lists): ...@@ -434,7 +434,7 @@ def join_header_words(lists):
if attr: headers.append("; ".join(attr)) if attr: headers.append("; ".join(attr))
return ", ".join(headers) return ", ".join(headers)
def strip_quotes(text): def _strip_quotes(text):
if text.startswith('"'): if text.startswith('"'):
text = text[1:] text = text[1:]
if text.endswith('"'): if text.endswith('"'):
...@@ -478,11 +478,11 @@ def parse_ns_headers(ns_headers): ...@@ -478,11 +478,11 @@ def parse_ns_headers(ns_headers):
k = lc k = lc
if k == "version": if k == "version":
# This is an RFC 2109 cookie. # This is an RFC 2109 cookie.
v = strip_quotes(v) v = _strip_quotes(v)
version_set = True version_set = True
if k == "expires": if k == "expires":
# convert expires date to seconds since epoch # convert expires date to seconds since epoch
v = http2time(strip_quotes(v)) # None if invalid v = http2time(_strip_quotes(v)) # None if invalid
pairs.append((k, v)) pairs.append((k, v))
if pairs: if pairs:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment