summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.cookiejar.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-03-26 00:59:47 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-03-26 00:59:47 (GMT)
commit722bec421086dbb117c9cd8592631203fce3ec21 (patch)
tree90c4ecb49a01f50c1f54eb6aaed07cee6328dbc2 /Doc/library/http.cookiejar.rst
parente7665c4cf3ec73a8d43c8ab489abc2ed8deae389 (diff)
parent211643b67320b253a2f4f723ece4423559d28ebf (diff)
downloadcpython-722bec421086dbb117c9cd8592631203fce3ec21.zip
cpython-722bec421086dbb117c9cd8592631203fce3ec21.tar.gz
cpython-722bec421086dbb117c9cd8592631203fce3ec21.tar.bz2
Merge 3.1
Diffstat (limited to 'Doc/library/http.cookiejar.rst')
-rw-r--r--Doc/library/http.cookiejar.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst
index e3af41f..9771496 100644
--- a/Doc/library/http.cookiejar.rst
+++ b/Doc/library/http.cookiejar.rst
@@ -722,7 +722,7 @@ cookies (assumes Unix/Netscape convention for location of the cookies file)::
import os, http.cookiejar, urllib.request
cj = http.cookiejar.MozillaCookieJar()
- cj.load(os.path.join(os.environ["HOME"], ".netscape/cookies.txt"))
+ cj.load(os.path.join(os.path.expanduser("~"), ".netscape", "cookies.txt"))
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
r = opener.open("http://example.com/")