This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients ezio.melotti, mrabarnett, purificant, xtreak
Date 2018-10-14.13:58:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539525507.21.0.788709270274.issue34982@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the report. git bisect tells me this change was introduced with fbb490fd2f38bd817d99c20c05121ad0168a38ee (issue32308)

# ../backups/bpo34982.py
import re

print(re.sub(r'(([^/]*)(/.*)?)', r'\2.zip/\1/', 'example'))

# Running script at fbb490fd2f38bd817d99c20c05121ad0168a38ee

➜  cpython git:(fbb490fd2f) ./python.exe ../backups/bpo34982.py
example.zip/example/.zip//

# Script at fbb490fd2f38bd817d99c20c05121ad0168a38ee~1

➜  cpython git:(fbb490fd2f) git checkout -q fbb490fd2f38bd817d99c20c05121ad0168a38ee~1
➜  cpython git:(0cc99c8cd7) make > /dev/null
➜  cpython git:(0cc99c8cd7) ./python.exe ../backups/bpo34982.py
example.zip/example/

I think is an intended change as noted in the message that might break third party code (msg308229) . Adding Serhiy for thoughts.
History
Date User Action Args
2018-10-14 13:58:27xtreaksetrecipients: + xtreak, ezio.melotti, mrabarnett, purificant
2018-10-14 13:58:27xtreaksetmessageid: <1539525507.21.0.788709270274.issue34982@psf.upfronthosting.co.za>
2018-10-14 13:58:27xtreaklinkissue34982 messages
2018-10-14 13:58:27xtreakcreate