summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.cookiejar.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-03-26 00:55:56 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-03-26 00:55:56 (GMT)
commit211643b67320b253a2f4f723ece4423559d28ebf (patch)
tree826cc12a97a74af609cec58912aee37276a6f4ff /Doc/library/http.cookiejar.rst
parent946f17214c5e344b4297d9d7f3d8abe2a399bb53 (diff)
parentf84eb5a38051e60c16b04d6db80f3dd1031f0ebd (diff)
downloadcpython-211643b67320b253a2f4f723ece4423559d28ebf.zip
cpython-211643b67320b253a2f4f723ece4423559d28ebf.tar.gz
cpython-211643b67320b253a2f4f723ece4423559d28ebf.tar.bz2
Branch merge
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 1aafec9..74d8d16 100644
--- a/Doc/library/http.cookiejar.rst
+++ b/Doc/library/http.cookiejar.rst
@@ -719,7 +719,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/")