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 rbanffy
Recipients ezio.melotti, mrabarnett, rbanffy
Date 2019-09-27.17:06:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569603997.59.0.0237297108404.issue38294@roundup.psfhosted.org>
In-reply-to
Content
Under Python 3.6, re.escape escapes "/"

In [1]: import re

In [2]: re.escape('http://workday.com')
Out[2]: 'http\\:\\/\\/workday\\.com'

Under 3.7 and 3.8, "/" is not escaped.

In [1]: import re

In [2]: re.escape('http://workday.com')
Out[2]: 'http://workday\\.com'

Is this change deliberate? For a minor release (3.6 to 3.7) this broke some code that generated `sed` commands to run on a remote server.
History
Date User Action Args
2019-09-27 17:06:37rbanffysetrecipients: + rbanffy, ezio.melotti, mrabarnett
2019-09-27 17:06:37rbanffysetmessageid: <1569603997.59.0.0237297108404.issue38294@roundup.psfhosted.org>
2019-09-27 17:06:37rbanffylinkissue38294 messages
2019-09-27 17:06:37rbanffycreate