[issue23703] urljoin() with no directory segments duplicates filename

2015-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc0e79387a3a by Berker Peksag in branch 'default': Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a. https://hg.python.org/cpython/rev/fc0e79387a3a -- nosy: +python-dev ___ Python

[issue23703] urljoin() with no directory segments duplicates filename

2015-04-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23703 ___

[issue23703] urljoin() with no directory segments duplicates filename

2015-04-14 Thread Martin Panter
Martin Panter added the comment: Any chance this regression can be fixed before the next release? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23703 ___

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-24 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23703 ___ ___

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-19 Thread Martin Panter
New submission from Martin Panter: This is a regression caused by revision 901e4e52b20a. Before (e.g. Python 3.4): urljoin('a', 'b') 'b' After: urljoin('a', 'b') 'b/b' This was identified in https://bugs.python.org/issue18828#msg238363 but is actually caused by the revision committed for

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: Yep, that's a lot cleaner and tests pass. I've updated the patch with that line. Thanks. -- Added file: http://bugs.python.org/file38573/issue23703_1.patch ___ Python tracker rep...@bugs.python.org

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-19 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23703 ___ ___ Python-bugs-list

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: Nice work tracking down the commit, thanks for that. I've attached a fix. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file38563/issue23703.patch ___ Python tracker

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-19 Thread Martin Panter
Martin Panter added the comment: Patch looks good enough. BTW I was thinking of something like this, which is a bit simpler, but I never tested it: segments[1:-1] = filter(None, segments[1:-1]) -- ___ Python tracker rep...@bugs.python.org