[Python-checkins] r81466 - python/trunk/Lib/cookielib.py
georg.brandl
python-checkins at python.org
Sat May 22 13:31:16 CEST 2010
Author: georg.brandl
Date: Sat May 22 13:31:16 2010
New Revision: 81466
Log:
Underscore the name of an internal utility function.
Modified:
python/trunk/Lib/cookielib.py
Modified: python/trunk/Lib/cookielib.py
==============================================================================
--- python/trunk/Lib/cookielib.py (original)
+++ python/trunk/Lib/cookielib.py Sat May 22 13:31:16 2010
@@ -434,7 +434,7 @@
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 @@
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:
More information about the Python-checkins
mailing list