Skip to content

urllib.parse.urlparseの挙動がバージョンにより違うことで発生する問題 #327

@Nobu19800

Description

@Nobu19800

Describe the bug
urllib.parse.urlparse関数の動作がバージョンにより異なる。

> urllib.parse.urlparse("localhost:2809")
ParseResult(scheme='localhost', netloc='', path='2809', params='', query='', fragment='')
> urllib.parse.urlparse("localhost:2809")
ParseResult(scheme='', netloc='', path='localhost:2809', params='', query='', fragment='')

この処理は例えばhttpのURLを入力した場合などにプロトコルを判別するために実行しているが、動作の違いにより問題が発生する場合がある

To Reproduce

Reproducibility
urllibのバージョンによっては100%

Expected behavior

Environment

  • OS: [e.g. Ubuntu 16.04 32bits]
  • OpenRTM-aist Version [e.g. 1.2.1]
  • ...

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions