[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is the string 'https://google.com' an URL or a path? If it is a path, posixpath.normpath() correctly collapses duplicated slashes. If it is an URL, using posixpath.normpath() is not correct. -- nosy: +serhiy.storchaka resolution: -> not a bug stage:

[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Govind S Menokee
Changes by Govind S Menokee : -- pull_requests: +3024 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Govind S Menokee
New submission from Govind S Menokee: Handle unwanted truncation of forward slash in case of URL input for normpath function. For Example - path = 'https://google.com' The current output of normpath function would be - 'https:/google.com' After changes the output would be - 'https://google.com'

[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Govind S Menokee
Changes by Govind S Menokee : -- components: Library (Lib) nosy: govindsmenokee priority: normal severity: normal status: open title: posixpath.normpath truncating forward slashes from URL type: behavior versions: Python 2.7 ___ Python tracker