commit | b496c468a11650008adc93509967abd66482aefb | [log] [tgz] |
---|---|---|
author | Chris Withers <chris@withers.org> | Sun Apr 28 23:08:22 2019 +0100 |
committer | Chris Withers <chris@withers.org> | Tue Apr 30 08:39:55 2019 +0100 |
tree | ad7aeadc5bcdd6a9ebceb1a2973d893d3e642e32 | |
parent | 52b1ecb000383c7cb413a12d997d15cc42904940 [diff] [blame] |
handle new news location
diff --git a/backport.py b/backport.py index d2a276f..671a44a 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/(.+\.rst)', r'\1/NEWS.d/\2'), + ('(a|b)/NEWS.d/next/(Library|Tests)/(.+\.rst)', r'\1/NEWS.d/\3'), ): patch = re.sub(pattern, sub, patch) return patch