Skip to content

Problems with parsing URLs #2

@oleksandr

Description

@oleksandr

On OSX 10.7 and Python 2.7 there's a problem with parsing "ws://" URLs using urlparse module that does not support "ws/wss" schemes. A workaround:

@classmethod
def _parse_url(cls, url):
    urlparse.uses_netloc.append("ws")
    urlparse.uses_fragment.append("ws")
    urlparse.uses_netloc.append("wss")
    urlparse.uses_fragment.append("wss")
    p = urlparse.urlparse(url)

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