Author eric.araujo
Recipients Valery.Khamenya, docs@python, eric.araujo, ezio.melotti, orsenthil, terry.reedy
Date 2011-09-17.15:31:04
SpamBayes Score 0.0871145
Marked as misclassified No
Message-id <1316273464.83.0.578857951709.issue12955@psf.upfronthosting.co.za>
In-reply-to
Content
[Terry]
> But when I add 'http:www.python.org' as an argument, I get
> urllib.error.URLError: <urlopen error no host given>

Your URI lacks a host (netloc, in RFC parlance) component:
>>> urllib.parse.urlparse('http:python.org')
ParseResult(scheme='http', netloc='', path='python.org', params='', query='', fragment='')
History
Date User Action Args
2011-09-17 15:31:04eric.araujosetrecipients: + eric.araujo, terry.reedy, orsenthil, ezio.melotti, docs@python, Valery.Khamenya
2011-09-17 15:31:04eric.araujosetmessageid: <1316273464.83.0.578857951709.issue12955@psf.upfronthosting.co.za>
2011-09-17 15:31:04eric.araujolinkissue12955 messages
2011-09-17 15:31:04eric.araujocreate