cpython: 54ea36ce6eab (original) (raw)
Mercurial > cpython
changeset 98088:54ea36ce6eab
merge 3.5 (#25145) [#25145]
Benjamin Peterson benjamin@python.org | |
---|---|
date | Sun, 20 Sep 2015 23🔞58 +0500 |
parents | 5e341ec3248f(current diff)7f76c7d853be(diff) |
children | 2fcd2540ab97 |
files | |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-)[+] [-] Doc/howto/urllib2.rst 5 |
line wrap: on
line diff
--- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -174,7 +174,7 @@ Explorer [#]_. :: import urllib.request url = 'http://www.someserver.com/cgi-bin/register.cgi'[](#l1.6)
- user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)' values = {'name' : 'Michael Foord', 'location' : 'Northampton', 'language' : 'Python' }
@@ -572,8 +572,7 @@ Footnotes This document was reviewed and revised by John Lee. -.. [#] Like Google for example. The proper way to use google from a program
is to use `PyGoogle <http://pygoogle.sourceforge.net>`_ of course.[](#l1.17)
+.. [#] Google for example. .. [#] Browser sniffing is a very bad practise for website design - building sites using web standards is much more sensible. Unfortunately a lot of sites still send different versions to different browsers.