Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc2fb0f

Browse files
committed
merge 3.4 (#25145)
2 parents 86eb730 + 16ad5cf commit fc2fb0f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/howto/urllib2.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Explorer [#]_. ::
174174
import urllib.request
175175

176176
url = 'http://www.someserver.com/cgi-bin/register.cgi'
177-
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
177+
user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'
178178
values = {'name' : 'Michael Foord',
179179
'location' : 'Northampton',
180180
'language' : 'Python' }
@@ -572,8 +572,7 @@ Footnotes
572572

573573
This document was reviewed and revised by John Lee.
574574

575-
.. [#] Like Google for example. The *proper* way to use google from a program
576-
is to use `PyGoogle <http://pygoogle.sourceforge.net>`_ of course.
575+
.. [#] Google for example.
577576
.. [#] Browser sniffing is a very bad practise for website design - building
578577
sites using web standards is much more sensible. Unfortunately a lot of
579578
sites still send different versions to different browsers.

0 commit comments

Comments
 (0)