commit | 7c85fb2f679003fc676a3c05ffc27b2022b72883 | [log] [tgz] |
---|---|---|
author | Chris Withers <chris@withers.org> | Mon Apr 29 07:21:04 2019 +0100 |
committer | Chris Withers <chris@withers.org> | Tue Apr 30 08:39:55 2019 +0100 |
tree | ceb6b0b921ecd1f33e6322268c923b658bda1557 | |
parent | 962077b08d62752a3655b69f46c72872aefc1833 [diff] [blame] |
handle more news locations
diff --git a/backport.py b/backport.py index 671a44a..95e136f 100644 --- a/backport.py +++ b/backport.py
@@ -59,7 +59,7 @@ ('(a|b)/Lib/unittest/mock.py', r'\1/mock/mock.py'), (r'(a|b)/Lib/unittest/test/testmock/(\S+)', r'\1/mock/tests/\2'), ('(a|b)/Misc/NEWS', r'\1/NEWS'), - ('(a|b)/NEWS.d/next/(Library|Tests)/(.+\.rst)', r'\1/NEWS.d/\3'), + ('(a|b)/NEWS.d/next/[^/]+/(.+\.rst)', r'\1/NEWS.d/\2'), ): patch = re.sub(pattern, sub, patch) return patch