Message353380
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. |
|
Date |
User |
Action |
Args |
2019-09-27 17:06:37 | rbanffy | set | recipients:
+ rbanffy, ezio.melotti, mrabarnett |
2019-09-27 17:06:37 | rbanffy | set | messageid: <1569603997.59.0.0237297108404.issue38294@roundup.psfhosted.org> |
2019-09-27 17:06:37 | rbanffy | link | issue38294 messages |
2019-09-27 17:06:37 | rbanffy | create | |
|