Message208156
>>> import urllib.parse
>>> p = urllib.parse.urlparse('http://[::1]spam:80')
>>> p
ParseResult(scheme='http', netloc='[::1]spam:80', path='', params='', query='', fragment='')
>>> p.hostname
'::1'
>>> p.port
80
'http://[::1]spam:80' is invalid URL, but urllib.parse.urlparse() accepts it and just ignore the spam part. |
|
Date |
User |
Action |
Args |
2014-01-15 12:32:10 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, orsenthil |
2014-01-15 12:32:09 | serhiy.storchaka | set | messageid: <1389789129.93.0.775761654638.issue20271@psf.upfronthosting.co.za> |
2014-01-15 12:32:09 | serhiy.storchaka | link | issue20271 messages |
2014-01-15 12:32:09 | serhiy.storchaka | create | |
|