Skip to content

Urlsplit does not accept unicode urls #12

@lopuhin

Description

@lopuhin

Probably you are already aware, but anyway: urlparse4.urlsplit does not accept unicode:

In [4]: urlparse4.urlsplit(u'http://google.com')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-7f5ea551e49e> in <module>()
----> 1 urlparse4.urlsplit(u'http://google.com')

urlparse4/cgurl.pyx in urlparse4.cgurl.urlsplit (urlparse4/cgurl.cpp:2537)()

TypeError: Argument 'url' has incorrect type (expected str, got unicode)

while urlparse.urlsplit from Python 2.7 does:

In [6]: urlparse.urlsplit(u'http://google.com')
Out[6]: SplitResult(scheme=u'http', netloc=u'google.com', path=u'', query='', fragment='')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions