k21/reddit — comment on commit b713eca226c21e3202d70d04e329defeb919e237
File: r2/r2/lib/utils/utils.py line 269
By k21:

sanitize_url uses hostname, not netloc. Demo:

```
Python 2.7.2+ (default, Aug 16 2011, 09:23:59)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from urlparse import urlparse
>>> u = urlparse('http://[3ffe:2a00:100:7031::1]')
>>> u
ParseResult(scheme='http', netloc='[3ffe:2a00:100:7031::1]', path='', params='', query='', fragment='')
>>> u.hostname
'3ffe:2a00:100:7031::1'
```