Skip to content

parsing url with 'localhost' as location raises InvalidUrl #3

@ghost

Description

Hi,
It seems there is a bug at line 212 .
Regards,
Nicolas
code :

>>> urlnorm.norm('http://localhost/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/urlnorm.py", line 150, in norm
File "build/bdist.linux-x86_64/egg/urlnorm.py", line 158, in norm_tuple
File "build/bdist.linux-x86_64/egg/urlnorm.py", line 213, in norm_netloc
urlnorm.InvalidUrl: host u'localhost' is not valid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions