diff options
author | Georg Brandl <georg@python.org> | 2010-05-22 11:31:16 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-05-22 11:31:16 (GMT) |
commit | a19baf58e648705edb99013aa5bd23f6a0b65c8c (patch) | |
tree | 6e7b4720545068fd81d7e0992620552e4d58b5e6 /Lib/cookielib.py | |
parent | 5d0ca2c8323b39e392c0c0bd31340cc3e1113c97 (diff) | |
download | cpython-a19baf58e648705edb99013aa5bd23f6a0b65c8c.zip cpython-a19baf58e648705edb99013aa5bd23f6a0b65c8c.tar.gz cpython-a19baf58e648705edb99013aa5bd23f6a0b65c8c.tar.bz2 |
Underscore the name of an internal utility function.
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r-- | Lib/cookielib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py index eed45f6..b61a2b2 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -434,7 +434,7 @@ def join_header_words(lists): if attr: headers.append("; ".join(attr)) return ", ".join(headers) -def strip_quotes(text): +def _strip_quotes(text): if text.startswith('"'): text = text[1:] if text.endswith('"'): @@ -478,11 +478,11 @@ def parse_ns_headers(ns_headers): k = lc if k == "version": # This is an RFC 2109 cookie. - v = strip_quotes(v) + v = _strip_quotes(v) version_set = True if k == "expires": # 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)) if pairs: |